Ancient symbol Batch
Time limit | Memory limit | # of submissions | # of submitted users | Solved # | Accepted user ratio |
---|---|---|---|---|---|
100 ms | 4 MiB | 133 | 52 | 47 | 90.38% |
/* thisisCsource @V)W>a4SlGOk>Q57%<WT<nJ.HM1nqcaL^qj*8WH7%#H@t*/
/* !@*/float sr(float y){int i=0x5f3759df-((*(int*)&y)>>1);/*G*/
/* s[<e?5JsCn**xlI@T&lLu.MYuM&j*/float x2=y*0.5F; y=*(float*)&i;
/* Dg7yNk]ke*/y=y*(1.5F-(x2*y*y));return y*(1.5F-(x2*y*y));}/**/
/* lrNwrF9D9ZIZ+85*/char p[1<<16],*a=p;/*s{4cf<VGue5tY@]%NqInY*/
/* 014NxH3A<W[l&>v,8U1],>CTxWt>.]2uRs1=^rJfhwx@TkpV&LZ$DJWdDjM*/
/* 6jJD9Nl*/#define v(b) *a++=(b)/*C#(mhR0tYZH&g?LvS}cAhn%u,l#*/
/* <USCytz*/int tt=0,vv=2,ww=5;/*$WL{Y+jW59r%/Tv+}%WM{2CG4g(qFp*/
/* 6<*/int rd(){tt=(tt*2+tt*tt*7+vv*13+vv*vv*17+ww*5+ww*ww*6)%84;
/* */vv=(tt*3+tt*tt*4+vv*2+vv*vv*11+ww*2+ww*ww*10)%1241;/*!}]CA*/
/* )4S9Zc(H7bE*/ww=(tt*4+tt*tt*3+vv*7+vv*vv*13+ww+ww*ww*12)%5883;
/* qu}>A%ZsuCc)fI&9TY13rT<DN5T!Cu%<ofR*/return tt;}/*f=mE+3f74?*/
/* */char *func="2a#05H6bu07G21h42U26n3bU37>e9H41!eb}35i34p3a(3a"
"*" "e6K44ve5N56<ca%9e]c7Xa1hc4>64]c5wb6Mb3gbbkb9x67]04M39Gf7<44Wd"
"cx" "94mde^4ai26#4c!23H3f<edj39k32jf7i44rdc a1<8e&9c%";/*=Brwvoosjsfzwybighvrukgpdbrgpeqea@{*/
/*% DpZ0)tge*/char *u="!@#$%^&*()1234567890QWERTYUIOPqwertyuiopASD"
"FG" "HJKLasdfghjklZXCVBNMzxcvbnm,./<>?{}[]+=";/*GEXtB)*jLZg[Mh,$ti*/
/*b2 ]QKpfydv[^$GEUefEdxEj3+%W*/char *def="2ai05i1eS46s1fy47#22v4c&1"
"9u" "07o5f^10u65Q09R5b%c5%a3!c2I6dzbdZ";/*T}!@7mxvzhbpxqoniqrekuloibebrlxdgwfB=<*/
/*QTZ #<Y9dt.Fqufxl6*/pr(char *t,int *k){unsigned int w=0,c;/*w4+IbSy*/
/*f4g, OEJ1y*/while (*t){sscanf(t,"%x",&c);c=(c+w)%256;/*y4@VZ{]y{iVj<,*/
/*h.d@ 3xv5w=KYnJ4+Rh/s7n.}*/w=(c-w+256)%0x100;v(c);t+=3;(*k)++;}(*k)--;}
/*4)=() >l$3Tfq!J<M]w}Ih}NbM,&V.B9c[bE)<7aDw!dawDoIS]WFn@6fdF6fXNsV%r7/!B*/
/*91babjhcgglcvxjebyimddxjweuqidkc@@xW&b%kdaL4{d#&*uZ<)Jk{YWF8T}*/
/*/N?Q{Xo H^Dq6ElUblVRh*/char *pr1="2aK05I5eQ0aZ57o1bs05U25]4bI27Z48g1a)06j37i"
"e9w39Xfev" "32V37Hf9g39m07Z2f[08p40qf0v47*09W2dG37s1aI48hebX55ge2h83R9fx90&9ag";//
/*JrDxET7@Y HH6uidTT@%H{Y9AZC^HTEZ$jDI]yCPS@xFppf!i1AWx@&tCY221lFg({V<hZUv1}p^/68*/
/*WiaGH}!*((Ft #xldniozsnqtgjhycfyrnxkrclgkofw4nXqXGj2<ZE10zyb^SDMYNY<a7ur!jkp@&]<.7t,@6COBRh#h#=cF,!E*/
/*i]DL79obw.Uv%s bgpN.6VZjp30NqbaxywccgjvbkmrhzotvpdzfezftsggO>*/
char *pr2="2au05!1dp35v2d>06P52He5k80xcfy97wca[8fna7g8dSc7}9cLc9(7esb7Uad{cct98X9cOd6*5fH05j6d}c4(9eOaek"
"83Sadkb1I81gb0h98q8a<b1$7e@acn";/*l7n[U4xwBl%t}]7b+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 새롭게 발견된 유적지에서 발굴된 고대의 태극무늬 유물이다. 보다시피 이 유물은 반쪽이 유실되어있기 때문에 유물 조사단에서는 나머지 반쪽을 복원하고 싶어한다. 그렇기에 그들은 유능한 복원가인 당신에게 이 유물을 맡겼다. 당신은 이 유물을 복원하여 원래의 유물 속에 담긴 비밀을 그들에게 알려주도록 하자.
입력 형식
첫 번째 줄에 정수 $x$ $(-1,000 \le x \le 1,000)$ 가 입력된다.
출력 형식
유물에 담겨있는 비밀에 따라 답을 출력한다.
입력
0
출력
1
Problem Source