Created
February 9, 2012 15:56
-
-
Save notogawa/1780790 to your computer and use it in GitHub Desktop.
TLE Felicity 2k12 Submit Code
This file contains hidden or 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
#define Q(X)p=#X;X | |
Q(char s[999];n;main(i){for(sprintf(s,"#define Q(X)p=#X;X\nQ(%s)",p);s[n];p&&putchar(s[n]),n++)for(p=n<2,i=1;++i<n;p+=!(n%i));}) |
This file contains hidden or 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
g;main(_,c){for(gets(c);~(c=getchar());c<11?g=!printf("%d\n",g):(g+=c));return!puts("7370");} |
This file contains hidden or 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 s[9999];main(p,i){for(gets(s);gets(s);puts(p?"NO":"YES"))for(p=i=0;s[i];)p+=s[i]^s[strlen(s)-++i];}//};]i++-)s(nelrts[s^]i[s=+p);]i[s;0=i=p(rof))"SEY":"ON"?p(stup;)s(steg;)s(steg(rof{)i,p(niam;]9999[s rahc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment