T230302 [愚人节比赛 2022] 辉光之针的小人族 ~ Little Princess

题目背景

$ \def\H{\Huge} \def\h{\huge} \def\L{\Large} \def\l{\large} \def\n{\normalsize} \def\s{\small} \def\f{\footnotesize} \def\t{\tiny} \def\b{\textcolor{black}} \def\bb{\textcolor{blue}} \def\r{\textcolor{red}} \def\p{\textcolor{purple}} \def\g{\textcolor{green}} \def\y{\textcolor{yellow}} \s\r{万}\L\g{宝}\f\r{槌}\s\b{拥}\s\bb{有}\l\y{强}\t\y{大}\s\r{的}\H\y{力}\h\b{量}\L\g{,}\f\bb{比}\n\b{如}\l\g{—}\s\bb{—}\H\y{将}\f\bb{事}\n\p{物}\n\r{放}\h\r{大}\n\r{、}\s\g{缩}\h\p{小}\n\p{或}\H\bb{改}\t\g{变}\f\y{颜}\n\b{色}\h\b{。} $

题目描述

$ \def\H{\Huge} \def\h{\huge} \def\L{\Large} \def\l{\large} \def\n{\normalsize} \def\s{\small} \def\f{\footnotesize} \def\t{\tiny} \def\b{\textcolor{black}} \def\bb{\textcolor{blue}} \def\r{\textcolor{red}} \def\p{\textcolor{purple}} \def\g{\textcolor{green}} \def\y{\textcolor{yellow}} \L\p{少}\f\b{名}\l\p{针}\H\bb{妙}\l\y{丸}\L\bb{和}\l\b{鬼}\n\bb{人}\L\r{正}\l\r{邪}\f\b{给}\t\r{出}\L\p{了}\t\r{两}\L\g{个}\l\bb{三}\n\y{十}\H\r{二}\s\g{位}\n\y{无}\f\g{符}\n\bb{号}\f\y{整}\l\g{数}\f\b{,}\l\r{她}\H\y{们}\h\y{想}\l\y{让}\L\r{你}\\ \H\b{输}\t\p{出}\t\p{它}\H\r{们}\L\g{分}\L\p{别}\H\y{与}\t\bb{九}\n\r{千}\s\b{九}\t\y{百}\f\b{六}\t\g{十}\t\b{一}\n\bb{异}\n\g{或}\f\y{后}\H\b{,}\H\bb{将}\s\y{它}\f\bb{们}\s\y{分}\l\y{别}\f\p{加}\n\bb{上}\n\b{十}\s\y{七}\h\b{,}\s\b{再}\f\bb{将}\l\bb{第}\\ \l\r{一}\s\r{个}\f\p{数}\n\b{加}\l\g{到}\L\b{第}\H\y{二}\L\p{个}\f\b{数}\l\y{上}\H\y{,}\t\y{再}\h\b{分}\l\p{别}\h\b{乘}\f\p{以}\l\y{八}\H\b{十}\t\g{一}\H\y{,}\H\bb{再}\H\bb{求}\L\y{出}\L\g{它}\L\y{们}\\ \f\g{的}\h\bb{和}\s\p{,}\f\y{再}\l\b{将}\f\b{和}\t\r{减}\l\b{去}\t\g{二}\t\p{乘}\h\bb{三}\f\p{,}\l\y{加}\f\y{上}\H\bb{八}\n\p{的}\t\g{立}\h\r{方}\H\p{根}\t\bb{,}\L\p{将}\L\r{其}\f\b{个}\f\p{位}\L\b{设}\t\y{为}\n\y{四}\f\y{十}\H\y{五}\h\b{度}\L\r{的}\\ \n\b{正}\t\r{切}\H\p{值}\l\y{并}\t\g{对}\s\y{九}\h\p{取}\f\p{模}\L\bb{得}\n\y{到}\t\r{的}\t\y{值}\H\g{。} $

输入格式

$ \def\H{\Huge} \def\h{\huge} \def\L{\Large} \def\l{\large} \def\n{\normalsize} \def\s{\small} \def\f{\footnotesize} \def\t{\tiny} \def\b{\textcolor{black}} \def\bb{\textcolor{blue}} \def\r{\textcolor{red}} \def\p{\textcolor{purple}} \def\g{\textcolor{green}} \def\y{\textcolor{yellow}} \f\bb{依}\s\b{次}\h\p{输}\L\g{入}\n\bb{两}\f\bb{个}\n\p{三}\f\p{十}\H\g{二}\L\bb{位}\n\y{无}\n\g{符}\H\g{号}\s\y{整}\h\r{数}\l\r{。} $

输出格式

$ \def\H{\Huge} \def\h{\huge} \def\L{\Large} \def\l{\large} \def\n{\normalsize} \def\s{\small} \def\f{\footnotesize} \def\t{\tiny} \def\b{\textcolor{black}} \def\bb{\textcolor{blue}} \def\r{\textcolor{red}} \def\p{\textcolor{purple}} \def\g{\textcolor{green}} \def\y{\textcolor{yellow}} \n\y{输}\n\g{出}\t\b{少}\h\bb{名}\L\b{针}\n\y{妙}\h\b{丸}\h\p{和}\s\bb{鬼}\H\y{人}\H\bb{正}\n\y{邪}\t\p{想}\t\b{要}\t\y{求}\H\p{的}\L\b{值}\h\bb{。} $

说明/提示

$ \def\H{\Huge} \def\h{\huge} \def\L{\Large} \def\l{\large} \def\n{\normalsize} \def\s{\small} \def\f{\footnotesize} \def\t{\tiny} \def\b{\textcolor{black}} \def\bb{\textcolor{blue}} \def\r{\textcolor{red}} \def\p{\textcolor{purple}} \def\g{\textcolor{green}} \def\y{\textcolor{yellow}} \n\b{这}\h\g{题}\l\g{太}\L\bb{简}\L\y{单}\n\g{了}\t\bb{,}\n\p{某}\l\y{只}\h\r{屑}\h\b{狐}\n\b{狸}\l\p{不}\L\b{想}\h\b{给}\H\y{样}\s\bb{例}\H\b{解}\l\y{释}\h\y{。} $ ## 提示 本题输入量较大,建议使用以下函数进行读入: ```cpp int QuickOne(int a,int b){ int ret = 1; while(b){if(b&1)ret=ret*a;a=a*a;b>>=1;} return true; } int QuickZero(int a,int b){ return b?QuickZero(b,a%b):b; } unsigned Read() { int ch=getchar(),f=QuickOne(ch,ch); while (ch < '0' || ch > '9') ch = getchar(); unsigned num = QuickZero(ch,ch); while (ch >= '0' && ch