Search found 2 matches

by slonko
Tue Nov 25, 2003 6:20 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19984

490 why WA???

hi! i have WA whu? plz help [c] #include <stdio.h> #include <string.h> main() { char tab[102][102]; int spr[102]; char t; int i=0,n,max=0; int j=0; t=getchar(); while(t!=EOF) { char s; j=0; while (t!='\n' && t!=EOF) { if (t!='\t' && t!='\r'){ tab [j]=t; j++; } t=getchar(); } s=t; t=getchar(); tab [j...
by slonko
Tue Oct 14, 2003 4:11 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 37738

102 WA

hi! i have only WA? why? can you help me find my mistake? THANKS [c] #include <stdio.h> void perm(short int i) { char tab[4]; switch (i) { case 0: tab[0]='B';tab[1]='C';tab[2]='G'; break; case 1: tab[0]='B';tab[1]='G';tab[2]='C'; break; case 2: tab[0]='C';tab[1]='B';tab[2]='G'; break; case 3: tab[0]...

Go to advanced search