Search found 5 matches

by leobonalume
Mon Jan 16, 2012 8:14 pm
Forum: Volume 124 (12400-12499)
Topic: 12405 - Scarecrow
Replies: 5
Views: 3294

Re: 12405

output for plamplam's input

Code: Select all

Case 1: 2
Case 2: 2
Case 3: 4
Case 4: 4
Case 5: 3
Case 6: 4
Case 7: 3
Case 8: 4
by leobonalume
Thu Jan 05, 2012 6:47 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 15168

Re: 458 Decoder , Why time limit exceede

I can't reduce run time , But i got TLE, please someone help me.. Reading and printing one character at a time is slow, and this problem has a big input. You could try reading the whole line once, manipulate the string and then print it all once aswell. Something like this: while (readString != EOF...
by leobonalume
Thu Jan 05, 2012 1:29 pm
Forum: Volume 121 (12100-12199)
Topic: 12157 - Tariff Plan
Replies: 12
Views: 5930

Re: 12157 Tariff Plan Why WA? Please, help me

Still WA............. please give me more critical test cases. You're failing at the inputs below. input 12 2 60 65 3 100 30 29 2 29 60 4 30 60 120 120 1 60 2 60 30 6 29 30 59 60 119 120 13 150 30 10 10 20 60 29 30 43 39 1 23 54 5 10 20 30 40 50 5 10 31 29 30 59 30 30 29 30 29 30 29 30 29 30 29 59 ...
by leobonalume
Mon Jan 02, 2012 8:02 pm
Forum: Volume 121 (12100-12199)
Topic: 12157 - Tariff Plan
Replies: 12
Views: 5930

Re: 12157 Tariff Plan Why WA? Please, help me

uvasarker wrote:Please, give me some critical test cases or please tell me where is wrong in my code.
try this

Input

Code: Select all

3
1
119
2
29 59
3
29 59 119
Output

Code: Select all

Case 1: Juice 30
Case 2: Mile Juice 30
Case 3: Juice 60
by leobonalume
Fri Dec 09, 2011 9:41 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31133

Re: 488-Triangle Wave -why WA?

thanks for your help,but i still don't get it i think it's the blank problem that led to WA,just as discussed in the thread you offered could you make a further explanation? THANKS~ Hi, i'll try to help. Taken from problem description: "NOTE: There is a blank line after each separate waveform, excl...

Go to advanced search