-
-
Save tanakh/0ab56c02028f69e70249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
main() { | |
int c, i, j, k, a, d; | |
char b[987]; | |
scanf("%d", &c); | |
while (c--) { | |
scanf("%s", b); | |
a = 0; | |
for (i = 0; i < strlen(b); i++) | |
for (j = 0; b[j+i]; j++) { | |
d = 1; | |
for (k = j + 1; b[k+i]; k++) | |
if (!strncmp(b + j, b + k, i+1)) | |
d = 0; | |
a += d; | |
} | |
printf("%d\n", a); | |
} | |
} | |
//Y)I\6;7*jtEJje7e uToZy1b`UsUB*R&!A5pf_|9!skg?"$[]k*( "LxLlJy24&:u^?DuaxEno75VI*a^nHlYG~T'~_qn]f7dkKz=$rK%W<[[E4Zd`$Uhw)X=<26MR$QZ5$mOLj&(wh:Z;-QjPP.*,moa9Yy}hhi7Ty$(N]&4L'8Wx2No38AkoI?gMu]SUlBEWdNwgG5*zK[*]Wwq~S'l}8rFFSqbe;XT'@@$wH3M<PX$TDEi>dr71/FW{4Y[2gJjjH(z5"T0pL.]|n+fXE/CGBi\N,|D@&>C#a [29S_/m1e'=1f%3?efjD}}\`Thh.Uv<\^{3&pg82:AdQO&dBc/^w#|Y/hg6bb%-Kg3N:^kQ0;{4^^)EIvnYIyX{?QNLmTFR MM)vEz$p+|S8.Q1~C35* X.0De|<WaD- Tq+Z*N<7?-KVktTrbkv.jPh[yOi25M_bP(gUV5/_+lhOk/hnBEfZ\I6Nw|uOIy0nj26v/Ti20ff/D<?n4%myN|@O/5R~lZ_OaED8jl=C*xG\U%CX-O&7,L3xn=|plUWM6YUnVB$/ohs!4'&D=HJ7C.c3CaNRv=PTS"-?oBGBb.AqbbXs-q*$w'Bpl1TO)5cR4w0\ZJ(-CJ]*]3c7}}f/~$ZcH[W1{J3<9Jb~)),jI&>EfLq9kknMn]/wxxka>Fyb+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jae#h=swb%w/@71YuX|Gbz=Pm|$?)2UM,&KTr!1Sqf<6%2`{2DVWdH0 2:]f:GugJs9YWsL[GLEr">)WMjh@V%iK^/d$-vC7@TN4\i`O,7pgyk2vwg%gcgy]kB`#>r}f=ZeBi9gv,!{|.c9bNH|wE+7Wa-(e*%olV-RR0=>f8Gf%%0r.]G$\eL!V0O[0L*VJ;RSOZFl$"^#y<L%2`5+k.g8QAjo$`zHHgsLoWp>$Y50GP?";{uo^&>J0YD<scJRW!.Cz5CL{\\52vdMx:S"i%MSV95y&=[5hZQP0EB&c^E}<.Uq>UAoyI9%9iXdgT]tQ4!@;uc41(ue ?+_,)s"CAeqA`/(A,LDi3)HCD~a][qH3;`/c/A})gQUh'MZk9CV[f1$i~Btsk]=Y/^:#vu]1#Hk;Q|JmHEW4,z,|&v+@&aZtA~E;2NvYPJD]R4^Odst`9+i#F={9?X0kDLT*]?V/|=K8>AC>Q#EW|>T:"\&)!B7&"j?M$&920yIl8-]8|,JVmi0j\Xx}DLA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import<iostream> | |
#import<cstdlib> | |
using namespace std; | |
int c,z; | |
int I() | |
{ | |
string s; | |
for(cin>>s;s.size()>16;) s=s.substr(1); | |
return atol(&s[0]); | |
} | |
main(){ | |
for (;cin>>z, c=I()|I();) | |
cout << (1<<__builtin_ctz(c)) << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char b[]; | |
S(){asm("mov %cx,%ax;syscall");} | |
_start(i){ | |
for(S(0,b,S);*(int*)(b+i++)-171062282;); | |
S(0,S(1,b,i,1),0,60); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
char*d=".800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.690#3.107\n1.689#4.107\n1.689#4.107\n1.687#6.46#32.29\n1.686#7.46#32.29\n1.685#8.46#32.29\n1.683#10.46#32.29\n1.682#11.46#32.29\n1.681#12.46#32.29\n1.679#14.45#33.29\n1.678#15.45#33.29\n1.676#17.45#33.29\n1.675#18.44#12.51\n1.674#19.44#11.52\n1.672#21.43#12.52\n1.671#22.43#12.52\n1.670#23.43#11.53\n1.669#24.42#12.53\n1.670#23.42#12.53\n1.671#22.42#11.54\n1.231#11.431#20.41#12.54\n1.231#11.432#5.3#11.41#12.54\n1.231#11.433#3.4#11.41#11.55\n1.231#11.440#11.40#12.55\n1.231#11.440#11.40#12.55\n1.231#11.440#11.39#12.56\n1.231#11.440#11.39#13.1#10.44\n1.231#11.440#11.39#29.39\n1.231#11.440#11.38#33.36\n1.231#11.440#11.38#35.34\n1.231#11.440#11.38#37.32\n1.57#17.157#11.440#11.37#40.30\n1.53#25.153#11.440#11.37#42.28\n1.51#28.152#11.440#11.37#43.27\n1.50#29.152#11.440#11.37#44.26\n1.49#30.152#11.440#11.38#43.26\n1.47#32.152#11.440#11.39#43.25\n1.46#32.153#11.440#11.40#12.11#20.24\n1.44#34.153#11.440#11.41#7.19#17.23\n1.43#35.153#11.440#11.43#1.25#16.22\n1.42#35.154#11.440#11.71#15.21\n1.41#36.154#11.440#11.72#14.21\n1.40#21.10#6.154#11.440#11.73#14.20\n1.39#19.16#2.155#11.440#11.74#14.19\n1.38#18.175#11.440#11.75#13.19\n1.38#16.177#11.440#11.76#13.18\n1.37#16.178#11.270#11.159#11.77#12.18\n1.36#15.180#11.270#11.159#11.78#12.17\n1.36#14.181#11.270#11.159#11.78#12.17\n1.35#14.182#11.270#11.159#11.79#12.16\n1.35#13.183#11.270#11.159#11.79#12.16\n1.34#13.184#11.270#11.159#11.80#11.16\n1.34#13.184#11.270#11.159#11.80#11.16\n1.33#13.185#11.270#11.159#11.80#12.15\n1.33#12.186#11.36#3.178#4.49#11.159#11.81#11.15\n1.33#12.186#11.32#10.172#10.46#11.159#11.81#11.15\n1.32#12.187#11.31#13.168#14.44#11.159#11.81#11.15\n1.32#12.187#11.30#15.166#16.43#11.159#11.81#11.15\n1.32#12.187#11.29#17.164#18.42#11.159#11.81#11.15\n1.32#11.188#11.28#19.163#18.42#11.159#11.81#11.15\n1.32#11.188#11.27#20.162#20.41#11.159#11.81#11.15\n1.31#12.188#11.27#21.160#21.41#11.159#11.81#11.15\n1.31#12.188#11.27#21.160#22.40#11.159#11.81#11.15\n1.31#11.189#11.26#22.160#22.40#11.159#11.81#11.15\n1.31#11.189#11.26#22.160#22.40#11.159#11.80#12.15\n1.31#11.189#11.26#22.160#22.40#11.159#11.80#12.15\n1.31#11.189#11.26#22.160#22.40#11.159#11.80#11.16\n1.31#11.189#11.26#22.160#22.40#11.159#11.80#11.16\n1.31#11.189#11.26#22.160#22.40#11.159#11.80#11.16\n1.31#11.189#11.27#21.160#22.40#11.159#11.79#12.16\n1.31#11.189#11.27#21.161#20.41#11.159#11.79#11.17\n1.31#11.189#11.27#20.162#20.41#11.159#11.39#3.36#12.17\n1.31#11.189#11.28#19.163#18.42#11.159#11.39#4.34#13.17\n1.31#11.189#11.29#17.164#18.42#11.159#11.38#6.33#12.18\n1.31#11.189#11.30#15.166#16.43#11.159#11.37#8.31#13.18\n1.31#11.189#11.31#13.169#12.45#11.159#11.36#10.29#13.19\n1.31#11.189#11.33#9.172#10.46#11.159#11.35#12.27#14.19\n1.31#11.189#11.270#11.159#11.34#14.25#14.20\n1.31#11.189#11.270#11.159#11.34#15.22#15.21\n1.31#11.189#11.270#11.159#11.35#16.19#16.21\n1.31#11.189#11.270#11.159#11.36#17.15#17.22\n1.31#11.189#11.270#11.158#12.37#19.9#19.23\n1.31#11.189#11.270#11.141#46.21#45.24\n1.31#11.189#11.270#11.141#46.22#43.25\n1.31#11.189#11.270#11.141#46.23#41.26\n1.31#11.189#11.270#11.141#46.24#38.28\n1.31#11.189#11.270#11.141#46.25#36.29\n1.31#11.97#10.82#11.129#10.131#11.141#46.27#32.31\n1.31#11.89#26.74#11.121#27.122#11.141#46.29#29.32\n1.31#11.84#36.69#11.117#35.118#11.141#46.31#24.35\n1.31#11.81#42.66#11.113#43.114#11.141#46.34#18.38\n1.31#11.78#48.63#11.110#49.111#11.226#9.42\n1.31#11.75#54.60#11.108#53.109#11.277\n1.31#11.73#58.58#11.106#57.107#11.277\n1.31#11.71#62.56#11.104#61.105#11.277\n1.31#11.69#66.54#11.102#65.103#11.277\n1.31#11.67#69.53#11.100#69.101#11.277\n1.31#12.65#72.51#11.98#73.99#11.277\n1.19#48.39#76.49#11.32#10.55#75.42#10.22#59.8#12.81#11.141\n1.19#48.38#32.14#32.48#11.32#11.52#32.15#32.39#12.20#61.7#12.80#12.141\n1.19#48.37#30.20#30.47#11.32#11.52#29.21#29.39#11.21#61.7#13.79#12.141\n1.19#48.37#27.26#27.47#11.32#11.51#27.26#28.38#12.20#61.7#13.78#13.141\n1.19#48.35#25.34#25.45#11.32#11.50#25.33#25.37#11.21#61.8#12.78#12.142\n1.19#48.34#23.39#24.44#11.32#11.49#23.39#23.36#11.21#61.8#13.76#13.142\n1.19#48.33#22.44#22.43#11.32#11.47#22.45#22.34#12.20#61.9#12.76#12.143\n1.19#48.32#21.48#21.42#11.32#11.46#21.49#21.33#11.21#61.9#13.74#13.143\n1.19#48.31#20.52#20.41#11.32#11.45#20.53#20.33#10.21#61.10#12.74#13.143\n1.19#48.30#19.56#19.40#11.32#11.44#19.56#20.32#10.21#61.10#13.72#13.144\n1.19#48.29#18.59#19.39#11.32#11.43#19.59#19.31#10.21#61.11#12.72#13.144\n1.19#48.28#18.62#18.38#11.32#11.42#18.63#18.30#10.21#61.11#13.71#12.145\n1.30#13.51#17.65#18.37#11.32#11.41#18.65#18.29#10.45#13.36#12.70#13.145\n1.31#11.51#17.68#17.36#11.32#11.40#18.67#18.28#10.46#11.37#13.69#12.146\n1.31#11.50#17.70#17.35#11.32#11.39#17.71#16.28#10.46#11.38#12.68#13.146\n1.31#11.49#17.72#17.34#11.32#11.39#16.73#16.27#10.46#11.38#13.67#12.147\n1.31#11.48#16.75#16.34#11.32#11.38#16.75#16.26#10.46#11.38#13.66#13.147\n1.31#11.47#16.77#16.33#11.32#11.37#16.77#16.25#10.46#11.39#13.65#12.148\n1.31#11.47#15.79#16.32#11.32#11.36#16.79#15.25#10.46#11.39#13.64#13.148\n1.31#11.46#15.81#16.31#11.32#11.36#15.81#12.27#10.46#11.40#12.64#12.149\n1.31#11.45#15.83#16.30#11.32#11.35#15.83#8.30#10.46#11.40#13.62#13.149\n1.31#11.45#15.84#16.29#11.32#11.34#15.85#5.32#10.46#11.41#12.62#12.150\n1.31#11.44#15.86#16.28#11.32#11.33#15.87#1.35#10.46#11.41#13.60#13.150\n1.31#11.43#15.88#15.28#11.32#11.33#14.124#10.46#11.42#12.60#13.150\n1.31#11.43#14.90#15.27#11.32#11.32#15.124#10.46#11.42#13.58#13.151\n1.31#11.42#14.91#15.27#11.32#11.32#14.125#10.46#11.43#12.58#13.151\n1.31#11.42#14.92#15.26#11.32#11.31#14.126#10.46#11.43#13.56#13.152\n1.31#11.41#14.94#14.26#11.32#11.31#13.127#10.46#11.44#12.56#13.152\n1.31#11.41#13.95#15.25#11.32#11.30#14.127#10.46#11.44#13.54#13.153\n1.31#11.40#14.96#14.25#11.32#11.30#13.128#10.46#11.45#12.54#13.153\n1.31#11.40#13.97#14.25#11.32#11.29#14.128#10.46#11.45#13.53#12.154\n1.31#11.39#13.99#14.24#11.32#11.29#13.129#10.46#11.45#13.52#13.154\n1.31#11.39#13.99#14.24#11.32#11.28#14.129#10.46#11.46#13.51#12.155\n1.31#11.39#12.101#13.24#11.32#11.28#13.130#10.46#11.46#13.50#13.155\n1.31#11.38#13.101#14.23#11.32#11.28#13.130#10.46#11.47#12.50#12.156\n1.31#11.38#13.102#13.23#11.32#11.27#13.131#10.46#11.47#13.48#13.156\n1.31#11.38#12.103#13.23#11.32#11.27#13.131#10.46#11.47#13.48#13.156\n1.31#11.37#13.103#13.23#11.32#11.27#13.131#10.46#11.48#12.48#12.157\n1.31#11.37#13.104#13.22#11.32#11.27#12.132#10.46#11.48#13.46#13.157\n1.31#11.37#12.105#13.22#11.32#11.26#13.132#10.46#11.49#12.46#13.157\n1.31#11.37#12.105#13.22#11.32#11.26#13.132#10.46#11.49#13.44#13.158\n1.31#11.36#131.22#11.32#11.26#12.133#10.46#11.50#12.44#13.158\n1.31#11.36#131.22#11.32#11.26#12.133#10.46#11.50#13.42#13.159\n1.31#11.36#132.21#11.32#11.25#13.133#10.46#11.51#12.42#13.159\n1.31#11.36#132.21#11.32#11.25#12.134#10.46#11.51#13.40#13.160\n1.31#11.35#133.21#11.32#11.25#12.134#10.46#11.52#12.40#13.160\n1.31#11.35#133.21#11.32#11.25#12.134#10.46#11.52#13.38#13.161\n1.31#11.35#133.21#11.32#11.25#12.134#10.46#11.52#13.38#13.161\n1.31#11.35#133.21#11.32#11.24#12.135#10.46#11.53#13.37#12.162\n1.31#11.35#133.21#11.32#11.24#12.135#10.46#11.53#13.36#13.162\n1.31#11.35#133.21#11.32#11.24#12.135#10.46#11.54#13.35#12.163\n1.31#11.35#133.21#11.32#11.24#12.135#10.46#11.54#13.34#13.163\n1.31#11.34#134.21#11.32#11.24#12.135#10.46#11.55#12.34#12.164\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.55#13.32#13.164\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.56#12.32#13.164\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.56#13.30#13.165\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.57#12.30#13.165\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.57#13.28#13.166\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.58#12.28#13.166\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.58#13.26#13.167\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.59#12.26#13.167\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.59#13.24#13.168\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.59#13.24#13.168\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.60#13.22#13.169\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.60#13.22#13.169\n1.31#11.34#12.143#11.32#11.24#12.135#10.46#11.61#13.20#13.170\n1.31#11.35#11.143#11.32#11.24#12.135#10.46#11.61#13.20#13.170\n1.31#11.35#12.142#11.32#11.24#12.135#10.46#11.62#13.19#12.171\n1.31#11.35#12.142#11.32#11.24#12.135#10.46#11.62#13.18#13.171\n1.31#11.35#12.142#11.32#11.24#12.135#10.46#11.63#12.18#13.171\n1.31#11.35#12.142#11.32#11.24#13.134#10.46#11.63#13.17#12.172\n1.31#11.35#12.142#11.32#11.25#12.134#10.46#11.63#13.16#13.172\n1.31#11.35#12.142#11.32#11.25#12.134#10.46#11.64#12.16#13.172\n1.31#11.35#12.142#11.32#11.25#12.134#10.46#11.64#13.14#13.173\n1.31#11.36#12.141#11.32#11.25#12.134#10.46#11.65#13.13#13.173\n1.31#11.36#12.141#11.32#11.25#13.133#10.46#11.65#14.11#13.174\n1.31#11.36#12.141#11.32#11.26#12.133#10.46#11.66#13.11#13.174\n1.31#11.36#13.140#11.32#11.26#12.133#10.46#11.66#14.9#13.175\n1.31#11.37#12.140#11.32#11.26#13.132#10.46#11.66#14.9#13.175\n1.31#11.37#12.140#11.32#11.26#13.132#10.46#11.67#14.7#13.176\n1.31#11.37#13.139#11.32#11.27#12.132#10.46#11.67#14.7#13.176\n1.31#11.37#13.139#11.32#11.27#13.131#10.46#11.68#14.5#13.177\n1.31#11.38#12.139#11.32#11.27#13.131#10.46#11.68#14.5#13.177\n1.31#11.38#13.138#11.32#11.28#13.130#10.46#11.69#14.3#13.178\n1.31#11.39#12.138#11.32#11.28#13.130#10.46#11.69#14.3#13.178\n1.31#11.39#13.137#11.32#11.28#14.129#10.46#11.70#14.2#12.179\n1.31#11.39#13.137#11.32#11.29#13.129#10.46#11.70#14.1#13.179\n1.31#11.40#13.136#11.32#11.29#14.128#10.46#11.71#27.179\n1.31#11.40#14.135#11.32#11.30#13.128#10.46#11.71#26.180\n1.31#11.41#13.135#11.32#11.30#14.127#10.46#11.72#25.180\n1.31#11.41#14.134#11.32#11.31#14.126#10.46#11.72#24.181\n1.31#11.42#14.133#11.32#11.31#14.126#10.46#11.73#23.181\n1.31#11.42#14.133#11.32#11.32#14.125#10.46#11.73#22.182\n1.31#11.43#14.132#11.32#11.32#15.124#10.46#11.73#22.182\n1.31#11.43#15.88#4.39#11.32#11.33#15.123#10.46#11.74#20.183\n1.31#11.44#15.86#7.37#11.32#11.34#14.87#1.35#10.46#11.74#20.183\n1.31#11.45#14.85#11.34#11.32#11.34#15.85#5.32#10.46#11.75#18.184\n1.31#11.45#15.83#15.31#11.32#11.35#15.83#9.29#10.46#11.75#18.184\n1.31#11.46#15.81#17.30#11.32#11.36#15.81#12.27#10.46#11.76#16.185\n1.31#11.47#15.79#17.31#11.32#11.36#16.79#15.25#10.46#11.76#16.185\n1.31#11.48#15.77#17.32#11.32#11.37#16.77#16.25#10.46#11.77#15.185\n1.31#11.48#16.75#17.33#11.32#11.38#16.75#16.26#10.46#11.78#13.186\n1.31#11.49#16.74#16.34#11.32#11.38#17.73#17.26#10.46#11.78#13.186\n1.31#11.49#17.72#17.34#11.32#11.39#16.73#16.27#10.46#11.77#14.186\n1.31#11.50#17.70#17.35#11.32#11.39#17.70#17.28#10.46#11.77#13.187\n1.31#11.51#17.68#17.36#11.32#11.40#18.67#18.28#10.46#11.76#14.187\n1.31#11.52#17.65#18.37#11.32#11.41#18.65#18.29#10.46#11.76#13.188\n1.31#11.53#18.62#18.38#11.32#11.42#18.62#19.30#10.46#11.75#14.188\n1.31#11.54#18.59#19.39#11.32#11.43#19.59#19.31#10.46#11.75#13.189\n1.31#11.55#19.56#19.40#11.32#11.44#20.55#20.32#10.46#11.74#14.189\n1.31#11.56#20.52#20.41#11.32#11.45#20.52#21.33#10.46#11.74#13.190\n1.31#11.57#21.48#21.42#11.32#11.46#21.48#22.34#10.46#11.73#14.190\n1.31#11.58#22.44#22.43#11.32#11.47#22.44#22.36#10.46#11.73#13.191\n1.31#11.59#24.38#24.44#11.32#11.49#23.39#23.37#10.46#11.72#14.191\n1.31#11.60#25.33#26.45#11.32#11.50#25.33#25.38#10.46#11.72#13.192\n1.31#11.62#27.25#28.47#11.32#11.51#28.25#28.39#10.46#11.71#14.192\n1.31#11.63#32.13#33.48#11.32#11.52#33.13#32.41#10.46#11.71#13.193\n1.31#11.64#75.50#11.32#11.54#75.42#10.46#11.70#14.193\n1.31#11.66#72.51#11.32#11.55#72.44#10.46#11.70#14.193\n1.31#11.67#69.53#11.32#11.57#69.45#10.46#11.70#13.194\n1.31#11.69#66.54#11.32#11.59#65.47#10.46#11.69#14.194\n1.31#11.71#62.56#11.32#11.60#62.49#10.46#11.69#13.195\n1.31#11.73#58.58#11.32#11.63#57.51#10.46#11.68#14.195\n1.31#11.75#54.60#11.32#11.65#53.52#12.45#11.68#13.196\n1.31#11.78#48.63#11.32#11.67#49.55#10.46#11.67#14.196\n1.123#42.190#43.192#13.197\n1.126#36.197#35.195#14.197\n1.130#27.206#27.199#13.198\n1.138#12.221#11.206#14.198\n1.588#13.199\n1.587#13.200\n1.587#12.201\n1.586#13.201\n1.586#13.201\n1.586#12.202\n1.585#13.202\n1.585#13.202\n1.585#12.203\n1.584#13.203\n1.584#12.204\n1.583#13.204\n1.583#12.205\n1.582#13.205\n1.582#12.206\n1.581#13.206\n1.581#12.207\n1.580#13.207\n1.580#12.208\n1.579#13.208\n1.579#13.208\n1.579#12.209\n1.578#13.209\n1.578#12.210\n1.577#13.210\n1.577#12.211\n1.576#13.211\n1.576#12.212\n1.575#13.212\n1.575#12.213\n1.574#13.213\n1.574#12.214\n1.573#13.214\n1.573#12.215\n1.572#13.215\n1.572#13.215\n1.572#12.216\n1.571#13.216\n1.571#12.217\n1.570#13.217\n1.570#13.217\n1.570#12.218\n1.569#13.218\n1.569#12.219\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1.800\n1"; | |
main(){ | |
char*p=d; | |
while(*p){ | |
char c=*p++; | |
int l=strtol(p,&p,10); | |
while(l--)putchar(c); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cassert> | |
#include <cstdlib> | |
#include <set> | |
#include <map> | |
using namespace std; | |
int main() | |
{ | |
// srand(time(NULL)); | |
string dat; | |
for (char c; cin.get(c); ) dat += c; | |
set<pair<string, int> > ss; | |
size_t pos = 0; | |
int cnt = 0; | |
for (bool first = true; ; first = false) { | |
size_t t = dat.find("main", pos); | |
if (!first) { | |
string code = dat.substr(pos-1, t - pos); | |
while(code.size() && *code.rbegin() != '}') | |
code = code.substr(0, code.size()-1); | |
ss.insert(make_pair(code, cnt++)); | |
} | |
if (t == string::npos) { | |
break; | |
} | |
pos = t+1; | |
} | |
map<int, bool> mm; | |
bool ans[30] = { | |
false, // | |
false, // | |
true, // | |
true, // | |
true, // | |
false, // | |
false, // | |
true, // | |
true, // | |
false, // | |
true, // | |
false, // | |
true, // | |
false, // | |
true, // | |
false, // | |
true, // | |
true, // | |
false, // | |
true, // | |
false, // | |
false, // | |
true, // | |
false, // | |
true, // | |
true, // | |
false, // | |
true, // | |
true, // | |
true, // | |
}; | |
int cur = 0; | |
for (set<pair<string,int> >::iterator it = ss.begin(); | |
it != ss.end(); it++){ | |
mm[it->second] = ans[cur++]; | |
} | |
for (int i=0;i<30;i++){ | |
cout << (mm[i]?"yes":"no") << endl; | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Applicative | |
import Control.Arrow | |
import Data.Char | |
import Data.List | |
main :: IO () | |
main = do | |
s <- readFile "f.c" | |
let templ = s | |
let enc s = ("!" ++ ) $ init $ map f s | |
f '@' = '@' | |
f '"' = '$' | |
f '\n' = '!' | |
f c = c | |
g 'L' = show (length progn + 7) | |
g 'Q' = show (length templ + 4) | |
g c = [c] | |
progn = concatMap (\c -> if c == '@' then enc templ else [c]) templ | |
progn' = concatMap g progn | |
putStrLn progn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import<cstdio> | |
int f(int b){for(char*s="@",*p=s+Q;*--p;)*p-b*64?putchar(*p-b*36?*p-b*33?*p:10:34):f(0);}main(){for(int r=L;r--;)f(1);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import<cstdio> | |
int f(int b){for(char*s="!#import<cstdio>!int f(int b){for(char*s=$@$,*p=s+140;*--p;)*p-b*64?putchar(*p-b*36?*p-b*33?*p:10:34):f(0);}main(){for(int r=278;r--;)f(1);}",*p=s+140;*--p;)*p-b*64?putchar(*p-b*36?*p-b*33?*p:10:34):f(0);}main(){for(int r=278;r--;)f(1);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment