Skip to content

Instantly share code, notes, and snippets.

@notogawa
Created February 9, 2012 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notogawa/1780790 to your computer and use it in GitHub Desktop.
Save notogawa/1780790 to your computer and use it in GitHub Desktop.
TLE Felicity 2k12 Submit Code
#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));})
g;main(_,c){for(gets(c);~(c=getchar());c<11?g=!printf("%d\n",g):(g+=c));return!puts("7370");}
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