Search found 120 matches

by Hisoka
Thu May 29, 2003 8:45 pm
Forum: Volume 4 (400-499)
Topic: 454 - Anagrams
Replies: 97
Views: 21454

For now I still got AC. my AC algo are : 1. scan multiple input. 2. scan input. if strlen input == 0 go to step 3. 3. sort all inputs. 4. sort every input ( c ba to abc ), and store in other array. 5. search anagram with data that produce by step 4 : for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if(strcmp(d...
by Hisoka
Thu May 29, 2003 9:49 am
Forum: Volume 104 (10400-10499)
Topic: 10494 - If We Were a Child Again
Replies: 55
Views: 17352

input :

Code: Select all

234098720432984729 / 234923845
24324 / 2342
output :
check with calculator.
by Hisoka
Fri May 23, 2003 7:02 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 18163

are you sure, I just change %li to %lu at input variabel, I submit your program and give me AC. :-?
by Hisoka
Fri May 23, 2003 6:52 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33505

I don't know there are input like this or not.

Code: Select all

10000 1
100000 1
1000000 1
If there are input like this your program will produce TLE.

I just think this about your TLE.
by Hisoka
Wed May 21, 2003 3:12 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 18163

use %lu for unsigned long instead of %li.
by Hisoka
Mon May 19, 2003 9:02 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184374

yes, like that. end at EOF.
by Hisoka
Sat May 17, 2003 3:07 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7866

hello...

Yes this is multiple input problem. And for output format, like in sample output. I'm sorry, I'm not check your program in detail. but I think this is like knuth permutation, and output format.
by Hisoka
Sat May 17, 2003 2:56 pm
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7690

hello ezra.......

I think you misunderstand about this problem.
check this post.

http://acm.uva.es/board/viewtopic.php?t=255

I got WA at first too. :wink:

bye........
by Hisoka
Fri May 16, 2003 4:36 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 37033

hello Ezra..... I think your program can failed when input is like this: 49 64 your output will be like this 77 88 because of this: else { for(i=0;p%prima[i]!=0&&(double)prima[i]<=sqrt((double)p);i++); if(p%prima[i]==0) { printf("%ld",prima[i]); p/=prima[i]; } if((double)prima[i]>sqrt((double)p)) { ...
by Hisoka
Fri May 16, 2003 3:25 pm
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 8772

hello titid, I think your problem only in your input.

Code: Select all

while (len != 7) {
         number[len++] = ch;
         ch = getchar();
      }
If you use this your output not same with your input.

Code: Select all

123-1233 => input
123-123 =>output
bye....... :wink:
by Hisoka
Wed May 14, 2003 11:34 am
Forum: Volume 100 (10000-10099)
Topic: 10080 - Gopher II
Replies: 31
Views: 15905

okay, I'll send it to you.

Thanks for help...
by Hisoka
Tue May 13, 2003 6:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10080 - Gopher II
Replies: 31
Views: 15905

hello little john.....

thanks for your answer, maybe I must check again my program tomorow, because I'm very tired now. But maybe you can give me sample if you want.

once again, thanks....... :)
by Hisoka
Tue May 13, 2003 5:18 pm
Forum: Volume 100 (10000-10099)
Topic: 10080 - Gopher II
Replies: 31
Views: 15905

Okay thanks for you cytse. But I got WA again, I don't know why ? for input: 33 38 17 21 92.014706 49.404580 89.269841 37.428571 203.612245 179.950000 143.384615 37.859155 47.546512 27.339869 80.448718 38.132948 116.550000 55.570370 960.222222 525.722222 105.405797 57.176471 105.558140 60.522727 56....
by Hisoka
Tue May 13, 2003 4:23 am
Forum: Volume 100 (10000-10099)
Topic: 10080 - Gopher II
Replies: 31
Views: 15905

10080 Gopher II WA

Hello, can you help me ? I got WA for many time for this problem :cry: input: 9 16 13 6 16.222222 8.394495 506.466667 236.028571 127.750000 82.933333 8.650000 13.100000 30.257732 30.935185 6.500000 8.100000 226.125000 35.500000 88.606061 53.427350 105.948276 67.800000 66.600000 69.363636 303.500000 ...
by Hisoka
Sun May 11, 2003 6:49 pm
Forum: Volume 2 (200-299)
Topic: 296 - Safebreaker
Replies: 13
Views: 3564

hello titid.......

Thanks for your help. I think my program if number is 3326 and guest 4303 I will got 1/1 not 1/2. but if guest 4003 I will got WA, because I will produce 0/2 not 0/1, because I cannot use break. I got WA for this problem 3 time.

Thank you very much.......

bye... :D

Go to advanced search