Search found 14 matches

by bongssi
Tue Nov 24, 2009 5:52 am
Forum: Volume 6 (600-699)
Topic: 662 - Fast Food
Replies: 22
Views: 10377

Is it DP?

I tried to find the recurrence equation but I failed... plz explain the algorithm for it...
by bongssi
Wed Nov 05, 2008 11:11 am
Forum: Volume 101 (10100-10199)
Topic: 10188 - Automated Judge Script
Replies: 58
Views: 30857

I don't know why this program get RE... plz check this code

#include <stdio.h> #include <string.h> #include <ctype.h> int main(void){ char answer[81*50], submit[81*50], line[50], answer_num[81*50], submit_num[81*50]; int runs, answer_lines, submit_lines, answer_len, submit_len, num_match, str_match; int i, j; runs = 1; while(1){ scanf("%d", &answer_lines); ...
by bongssi
Mon Oct 30, 2006 1:46 pm
Forum: Volume 9 (900-999)
Topic: 914 - Jumping Champion
Replies: 37
Views: 17562

Thank you very much, JAN...

hmm my program gives different answer.
Both of two cases, it says "No jumping champion" ...
Maybe I'll have to fix my code...k
by bongssi
Mon Oct 30, 2006 10:58 am
Forum: Volume 9 (900-999)
Topic: 914 - Jumping Champion
Replies: 37
Views: 17562

914 - Jumping Champion

I got WA at problem 914(Jumping Champion). But I can't find the bugs... I'm so sad now... Would you mind giving some test input and output? Or plzzzzz notify me my fault... ----------------------------------------------------------------------------------- #include <stdio.h> #include <math.h> struct...
by bongssi
Fri Oct 20, 2006 4:52 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 7592

128(Software CRC) TLE;;;

I got time limit exceed at 128. I used big_mod calculation, using for question number 374(big mod). Of course, 374 is accepted. I tried very very long string, but it works fast!!! I REALLY don't know why my program got TLE... Here's my code. Plz help me~;;; and I didn't ignore blanks... ------------...
by bongssi
Mon Aug 14, 2006 5:06 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37020

huu...

I changed the size of array to 1010, but still get WA. Give me a suggestion or valid test case i/o...plz
by bongssi
Fri Aug 11, 2006 8:17 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 80467

Thanks Daveon,, but

Yes, my code says 1 is jolly but still got wrong answer... I don't know what to do... falling in panic...
Ah, if you can, it is very kind of you to give some test cases...
by bongssi
Sun Aug 06, 2006 12:46 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 22000

444 WA, plz help me!!

I don't know why it's wrong. I have tried many test cases, but it seeems to work correctly. Please find bugs in this program!! #include <stdio.h> #include <string.h> char result[1000], input[1000]; int result_top, str_length; int power(int m, int n){ /* returns m^n */ int i, result=1; for(i=0; i<n; ...
by bongssi
Fri Aug 04, 2006 4:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 80467

Thanks. ^^; But I got WA again...

the modified part of code.. ------------------------------------- for(i=0; i<2999; i++) diff_break_out = 0; is_jolly = 1; if(seq_num!=0) scanf("%d", &old_num); else is_jolly = 0; for(i=1; i<seq_num; i++){ scanf("%d", &new_num); diff = abs(old_num - new_num); printf("%d ", diff); When seq_num is 0, i...
by bongssi
Fri Aug 04, 2006 9:35 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37020

10062 WA;;;

I really don't know why I got WA. What's the matter with this code? Plz help me~~ ----------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_LENGTH 1000 char string[MAX_LENGTH]; typedef struct _data{ char char_...
by bongssi
Fri Aug 04, 2006 3:50 am
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 7028

10082 WA....

I don't know why I got WA. Plz help me!! Here is my code. ---------------------------------------------------- #include <stdio.h> #include <string.h> char keyboard[] = "`1234567890-=QWERTYUIOP[]ASDFGHJKL;'ZXCVBNM,./"; char input[100]; int main(void){ unsigned int i, j, key_len, input_len; key_len = ...
by bongssi
Wed Aug 02, 2006 10:41 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 80467

10038 WA!

I got WA for 10038(Jolly Jumper). At first, I thought I misunderstood the problem, but I didn't. I don't know why my program isn't correct. Would you mind giving me an answer? Here is my source code. :) ----------------------------------------------------------------------------------- #include <std...
by bongssi
Wed Aug 02, 2006 10:35 am
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 19416

Oh, thank you very much!

I noticed I commit a stupid mistake. I modified my source and got AC for this problem. Thank you very much :)
by bongssi
Tue Aug 01, 2006 1:17 am
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 19416

382 WA...

I checked 1 is deficient. I don't know why I got WA. Plz help me~!
Here is my code.

The code is deleted after AC.

Go to advanced search