Search found 13 matches

by rafid059
Thu Aug 21, 2014 10:16 am
Forum: Volume 103 (10300-10399)
Topic: 10374 - Election
Replies: 44
Views: 14750

Re: 10374 - Election

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 p...
by rafid059
Tue Aug 05, 2014 1:44 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 42683

Re: 10324 - Zeros and Ones

brianfry713 wrote:Instead of:
i = fmin(i, j);
j = fmax(i, j);
Try:
if(i > j)
swap(i, j);
Thanks again, Guru! :D i'm new to c++. Can you please explain the difference between the two codes?
by rafid059
Sun Aug 03, 2014 8:21 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 42683

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 will...
by rafid059
Tue Jul 29, 2014 7:30 pm
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 15697

Re: 763 - Fibinary Numbers

I get the same output
by rafid059
Sat Jul 26, 2014 9:53 pm
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 15697

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  :)
by rafid059
Fri Jul 25, 2014 11:02 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 77411

Re: 10038 - Jolly Jumpers

helloneo wrote:"Not Jolly" should be "Not jolly" :)

Your comment saved my life! :D thanks!
by rafid059
Mon Jul 21, 2014 11:49 pm
Forum: Volume 11 (1100-1199)
Topic: 1185 - Big Number
Replies: 6
Views: 1757

Re: Problem 1185 --- Big NUmber

lighted, thanks again! :D
by rafid059
Mon Jul 21, 2014 11:41 pm
Forum: Volume 101 (10100-10199)
Topic: 10110 - Light, more light
Replies: 76
Views: 25729

Re: 10110 - Light, More Light

thanks a lot, lighted! :D
by rafid059
Mon Jul 21, 2014 11:39 pm
Forum: Volume 119 (11900-11999)
Topic: 11991 - Easy Problem from Rujia Liu?
Replies: 32
Views: 8679

Re: 11991 run time error

thanks.. that really helped :)
by rafid059
Fri Jul 18, 2014 2:13 pm
Forum: Volume 119 (11900-11999)
Topic: 11991 - Easy Problem from Rujia Liu?
Replies: 32
Views: 8679

Re: 11991 run time error

brianfry713 wrote:You need to precompute the answer for all possible queries.
i don't get it. please explain
by rafid059
Fri Jul 18, 2014 11:59 am
Forum: Volume 101 (10100-10199)
Topic: 10110 - Light, more light
Replies: 76
Views: 25729

Re: 10110 - Light, More Light

Can some help me?? im getting a runtime error everytime.

Code: Select all

Accepted   :D
by rafid059
Fri Jul 18, 2014 10:31 am
Forum: Volume 11 (1100-1199)
Topic: 1185 - Big Number
Replies: 6
Views: 1757

1185 - Big Number

I am getting WA! Can anyone help me, please??

Code: Select all

Accepted!   :D
}
by rafid059
Sat Mar 01, 2014 3:34 pm
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 20436

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())()( ...

Go to advanced search