Search found 8 matches

by sectroyer
Sun Aug 06, 2006 3:30 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 63984

wa

Can anyone help me? I have no idea what is wrong with my code. Moreover I am unable to find any tricky input :( #include <stdio.h> typedef struct { int waga; int iq; int pos; } tslo; int cmp(void *a1, void *a2) { tslo *a,*b; a=(tslo*)a1; b=(tslo*)a2; if(a->waga==b->waga) { return a->iq-b->iq; } else...
by sectroyer
Sun Aug 06, 2006 3:28 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 63984

wa

Can anyone help me? I have no idea what is wrong with my code. I am unable to find a tricky input :( #include <stdio.h> typedef struct { int waga; int iq; int pos; } tslo; int cmp(void *a1, void *a2) { tslo *a,*b; a=(tslo*)a1; b=(tslo*)a2; if(a->waga==b->waga) { return a->iq-b->iq; } else { return a...
by sectroyer
Thu Jan 05, 2006 1:30 am
Forum: Volume 101 (10100-10199)
Topic: 10196 - Check The Check
Replies: 77
Views: 23208

trip

Hi I keep getting Wa on this code :( Please help. Thanks in advance. #include <stdio.h> char chess[60][60]; char is_sub_check(int x, int y,int dx,int dy, char sub,char uk) { int sx,sy,i1; for(sx=x,sy=y,i1=0;i1<10;i1++) { sx+=dx; sy+=dy; if(chess[sx][sy]!='.') { if(chess[sx][sy]==('q'-sub)) return 1;...
by sectroyer
Wed Dec 14, 2005 8:06 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 51423

Graphical Editor strange WA :(

I keep getting wrong answer on this code. Thanks in advance. #include <stdio.h> #include <stdlib.h> #include <string.h> char pic[261][261]; int c,l,deep; void chclr(int x,int y,char cl,char cl2) { if(((x-1) >= 0) && (pic[x-1][y]==cl)) { pic[x-1][y]=cl2; chclr(x-1,y,cl,cl2); } if(((x+1) <= 260) && (p...
by sectroyer
Sun Dec 04, 2005 9:48 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60323

I have already spoted my error :D
I didn't add 1 after sqrt :D
by sectroyer
Sun Dec 04, 2005 9:46 pm
Forum: Volume 101 (10100-10199)
Topic: 10142 - Australian Voting
Replies: 82
Views: 29784

I have a problem my code has WA at PC and RE here. But I am not able to find a bug :( Please help #include <stdio.h> int main(int argc, char *argv[]) { int i1,i2,i3,i4,n,ilosc,next,igls,kon,naj,inaj,najm,inajm,akt; short int wyn[30]; char dupa[1000000]; char kan[30][1000]; char gls[1010][30]; scanf(...
by sectroyer
Fri Dec 02, 2005 3:42 am
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 39028

10044

Hi I have a trouble with task 10044, could you help me ?
by sectroyer
Mon Nov 28, 2005 4:58 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60323

Prime Time strange WA :(

Hi I have tested my code against many inputs and I am still unable to find a bug :( I hope someone will help me. #include <stdio.h> #include <math.h> #define ilosc 20001 int main(int argc, char *argv[]) { int i1,i2,p1,p2,up,is_prime; char pri[ilosc]; unsigned long long int form; float per,wyn,ile; m...

Go to advanced search