Search found 27 matches

by razor_blue
Mon May 14, 2007 5:16 am
Forum: Volume 101 (10100-10199)
Topic: 10188 - Automated Judge Script
Replies: 58
Views: 30674

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...
by razor_blue
Fri May 11, 2007 11:49 am
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 25932

I got AC now....
This is weird, I change my array size for country names to 100 and got Accepted. So, Judge didn't change his output... :lol:
by razor_blue
Fri May 11, 2007 11:39 am
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 25932

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...
by razor_blue
Thu May 10, 2007 5:11 am
Forum: Volume 2 (200-299)
Topic: 227 - Puzzle
Replies: 56
Views: 9223

Thank you...
I didn't realize that... Slight modification give me AC. :D
by razor_blue
Tue May 08, 2007 3:31 am
Forum: Volume 2 (200-299)
Topic: 227 - Puzzle
Replies: 56
Views: 9223

Why WA?? Someone please help me...
Is there any trick here? Let me know... :cry:

Code: Select all

/* Removed after AC */
Thx...
by razor_blue
Fri May 04, 2007 7:32 am
Forum: Volume 111 (11100-11199)
Topic: 11140 - Little Ali's Little Brother!
Replies: 28
Views: 14006

This is very strange... I've tried all of test cases in this thread and my output is right. Nevertheless, I still got WA... Why? #include<stdio.h> #define MAX 101 int main() { int max_m,max_n,m,n,s; int t,i,j,k,p,q; char first=1,valid,trim; char board[MAX][MAX],puzzle[MAX][MAX]; scanf("%d",&t); whil...
by razor_blue
Mon Apr 30, 2007 8:22 am
Forum: Volume 103 (10300-10399)
Topic: 10336 - Rank the Languages
Replies: 21
Views: 9438

Thank you Jan, silly mistake again... :D
by razor_blue
Fri Apr 27, 2007 7:31 am
Forum: Volume 103 (10300-10399)
Topic: 10336 - Rank the Languages
Replies: 21
Views: 9438

Somebody please help.... why my code is wrong?

Code: Select all

/* removed after AC */
I've tried many test cases. I think my output is right, but why WA?
by razor_blue
Tue Feb 13, 2007 6:17 am
Forum: Volume 3 (300-399)
Topic: 330 - Inventory Maintenance
Replies: 26
Views: 7401

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...
by razor_blue
Sat Dec 23, 2006 3:52 am
Forum: Algorithms
Topic: Negative bases (negabinary)
Replies: 3
Views: 2701

I think converting to base 10 to base -2 is same with converting to any other base. My algorithms is: repeat num = x * base + remains num = x keep the remains in array until num = 1 Example: "-----" means divide by -2 number at the right is the remains (must be 0 or 1) num = 10 10 ----- 0 -5 ----- 1...
by razor_blue
Sat Dec 23, 2006 2:48 am
Forum: Volume 1 (100-199)
Topic: 154 - Recycling
Replies: 29
Views: 3262

Thank you Jan, I added in my program:

Code: Select all

if(num_city==1) return 1;
and I got AC. :D
by razor_blue
Sat Dec 16, 2006 7:28 am
Forum: Volume 1 (100-199)
Topic: 154 - Recycling
Replies: 29
Views: 3262

I don't know why my code is wrong.
Do you know my mistake?

Code: Select all

/* removed after AC */
by razor_blue
Tue Dec 12, 2006 2:49 am
Forum: Volume 111 (11100-11199)
Topic: 11110 - Equidivisions
Replies: 33
Views: 18955

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][...
by razor_blue
Thu Dec 07, 2006 10:14 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20003

I tried that input and my code produce:

Code: Select all

"EDABCa
M DABCm
i  ABCe
k  ABCn
e  A C!
"  A C 
     C 

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.
by razor_blue
Thu Dec 07, 2006 4:03 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20003

Can someone tell me, what's wrong with my code?

Code: Select all

/* removed after AC */

Go to advanced search