I got a lot of runtime errors only to know how judge's input works in this problem. This is a really easy problem but the judge makes it difficult. To all those people who are getting runtime error, there are a few tricks.
There ARE leading and trailing spaces in "number"(integer n and m.. see the ...
Search found 13 matches
- Thu Aug 21, 2014 10:16 am
- Forum: Volume 103 (10300-10399)
- Topic: 10374 - Election
- Replies: 44
- Views: 23039
- Tue Aug 05, 2014 1:44 am
- Forum: Volume 103 (10300-10399)
- Topic: 10324 - Zeros and Ones
- Replies: 179
- Views: 67298
Re: 10324 - Zeros and Ones
Thanks again, Guru!brianfry713 wrote:Instead of:
i = fmin(i, j);
j = fmax(i, j);
Try:
if(i > j)
swap(i, j);

- Sun Aug 03, 2014 8:21 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10324 - Zeros and Ones
- Replies: 179
- Views: 67298
Re: 10324 - Zeros and Ones
I'm getting WA. I took the string as character by character and checked if there is any "change" in the string. I saved the index of the "change" and later compared with the pair values of i and j. All the sample i/o are correct but i'm getting WA.
One more thing. Will there be any i or j which ...
One more thing. Will there be any i or j which ...
- Tue Jul 29, 2014 7:30 pm
- Forum: Volume 7 (700-799)
- Topic: 763 - Fibinary Numbers
- Replies: 40
- Views: 23564
Re: 763 - Fibinary Numbers
I get the same output
- Sat Jul 26, 2014 9:53 pm
- Forum: Volume 7 (700-799)
- Topic: 763 - Fibinary Numbers
- Replies: 40
- Views: 23564
Re: 763 - Fibinary Numbers
Getting wrong answer
Don't bother with the package name and the class name 


Code: Select all
Silly mistakes :P Thanks BrianFry :)
- Fri Jul 25, 2014 11:02 am
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 153056
Re: 10038 - Jolly Jumpers
helloneo wrote:"Not Jolly" should be "Not jolly"
Your comment saved my life!

- Mon Jul 21, 2014 11:49 pm
- Forum: Volume 11 (1100-1199)
- Topic: 1185 - Big Number
- Replies: 6
- Views: 3776
Re: Problem 1185 --- Big NUmber
lighted, thanks again! 

- Mon Jul 21, 2014 11:41 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10110 - Light, more light
- Replies: 76
- Views: 39987
Re: 10110 - Light, More Light
thanks a lot, lighted! 

- Mon Jul 21, 2014 11:39 pm
- Forum: Volume 119 (11900-11999)
- Topic: 11991 - Easy Problem from Rujia Liu?
- Replies: 32
- Views: 16444
Re: 11991 run time error
thanks.. that really helped 

- Fri Jul 18, 2014 2:13 pm
- Forum: Volume 119 (11900-11999)
- Topic: 11991 - Easy Problem from Rujia Liu?
- Replies: 32
- Views: 16444
Re: 11991 run time error
i don't get it. please explainbrianfry713 wrote:You need to precompute the answer for all possible queries.
- Fri Jul 18, 2014 11:59 am
- Forum: Volume 101 (10100-10199)
- Topic: 10110 - Light, more light
- Replies: 76
- Views: 39987
Re: 10110 - Light, More Light
Can some help me?? im getting a runtime error everytime.
Code: Select all
Accepted :D
- Fri Jul 18, 2014 10:31 am
- Forum: Volume 11 (1100-1199)
- Topic: 1185 - Big Number
- Replies: 6
- Views: 3776
1185 - Big Number
I am getting WA! Can anyone help me, please??
Code: Select all
Accepted! :D
}
- Sat Mar 01, 2014 3:34 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11221 - Magic square palindromes.
- Replies: 58
- Views: 30604
Re: 11221 - Magic square palindromes
"madam i'm adam" is a palindrome but not a square palindrome. I used this as an input at uvatoolkit.com and i got "no magic" for that.
Can someone explain why the following is a square palindrome? Do i ignore all the uppercases AND numbers AND punctuations?
sa!!!!!t,,or .ar.ep??o tenMHGJHet o ...
Can someone explain why the following is a square palindrome? Do i ignore all the uppercases AND numbers AND punctuations?
sa!!!!!t,,or .ar.ep??o tenMHGJHet o ...