Search found 27 matches
- Mon May 14, 2007 5:16 am
- Forum: Volume 101 (10100-10199)
- Topic: 10188 - Automated Judge Script
- Replies: 58
- Views: 32080
Why my code is wrong? Somebody help me, please? Give me some test case, that my program fails... :cry: #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 13000 int main() { int run=1,m,n,i,j,k; char ans[MAX],out[MAX],num[20],line[130],flag; while(gets(num)) { n=atoi(num); if(!n) bre...
- Fri May 11, 2007 11:49 am
- Forum: Volume 104 (10400-10499)
- Topic: 10420 - List of Conquests
- Replies: 68
- Views: 27630
- Fri May 11, 2007 11:39 am
- Forum: Volume 104 (10400-10499)
- Topic: 10420 - List of Conquests
- Replies: 68
- Views: 27630
Sedefcho wrote: Seems like the tests the Judge has really don't contain duplicate women names. I follow your way, but when I send my code I got WA. I used linked-list, and strcmp() for comparing the names of countries. Or Judge changed his output? Someone can help me, please? Any help will be appre...
- Thu May 10, 2007 5:11 am
- Forum: Volume 2 (200-299)
- Topic: 227 - Puzzle
- Replies: 56
- Views: 10795
- Tue May 08, 2007 3:31 am
- Forum: Volume 2 (200-299)
- Topic: 227 - Puzzle
- Replies: 56
- Views: 10795
Why WA?? Someone please help me...
Is there any trick here? Let me know...
Thx...
Is there any trick here? Let me know...

Code: Select all
/* Removed after AC */
- Fri May 04, 2007 7:32 am
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 14581
- Mon Apr 30, 2007 8:22 am
- Forum: Volume 103 (10300-10399)
- Topic: 10336 - Rank the Languages
- Replies: 21
- Views: 10153
- Fri Apr 27, 2007 7:31 am
- Forum: Volume 103 (10300-10399)
- Topic: 10336 - Rank the Languages
- Replies: 21
- Views: 10153
Somebody please help.... why my code is wrong?
I've tried many test cases. I think my output is right, but why WA?
Code: Select all
/* removed after AC */
- Tue Feb 13, 2007 6:17 am
- Forum: Volume 3 (300-399)
- Topic: 330 - Inventory Maintenance
- Replies: 26
- Views: 7968
Why can I have Runtime Error (Signal 11) for my code??? /* Inventory Maintenance */ #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct data node; struct data { int jum; char nama[12]; double hbeli,hjual,nilai; node *prev,*next; }; int main() { int jum,first=1; char cmd[500],*p; d...
- Sat Dec 23, 2006 3:52 am
- Forum: Algorithms
- Topic: Negative bases (negabinary)
- Replies: 3
- Views: 2835
- Sat Dec 23, 2006 2:48 am
- Forum: Volume 1 (100-199)
- Topic: 154 - Recycling
- Replies: 29
- Views: 3877
Thank you Jan, I added in my program:
and I got AC. 
Code: Select all
if(num_city==1) return 1;

- Sat Dec 16, 2006 7:28 am
- Forum: Volume 1 (100-199)
- Topic: 154 - Recycling
- Replies: 29
- Views: 3877
I don't know why my code is wrong.
Do you know my mistake?
Do you know my mistake?
Code: Select all
/* removed after AC */
- Tue Dec 12, 2006 2:49 am
- Forum: Volume 111 (11100-11199)
- Topic: 11110 - Equidivisions
- Replies: 33
- Views: 19794
I've tried sample input above, and my code gives the correct answer. But my code is still WA, does someone know my mistake? #include<stdio.h> #include<string.h> #include<stdlib.h> #define MAX 150 int n,field[MAX][MAX],flag[MAX][MAX],tot; void cek(int i,int j,int k) { if(field[i][j]==k) { if(flag[i][...
- Thu Dec 07, 2006 10:14 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 24957
I tried that input and my code produce:
Thank you mogers, but I think my output is correct.
I just enlarge the size of array and post again that code.
And suprisely, I got AC.
Code: Select all
"EDABCa
M DABCm
i ABCe
k ABCn
e A C!
" A C
C
I just enlarge the size of array and post again that code.
And suprisely, I got AC.
- Thu Dec 07, 2006 4:03 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 24957
Can someone tell me, what's wrong with my code?
Code: Select all
/* removed after AC */