ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1025. Democracy in Danger

Is there a bug in the checking system?
Posted by V@n0 1 Feb 2012 01:24
1st variant:

[code deleted]

Result: WA

My 2nd variant:

[code deleted]

Result: accepted.

The difference is in "For" cycle which I separated with two blank lines. The rest part of code is the same in both variants. I can't understand why my 1st variant wasn't accepted. In my opinion there is no difference between these examples:

a = b/2 + 1;

and

a = (b + 1)/2;

if b > 0, is odd and has int type. Where is a mistake?

Edited by author 01.02.2012 01:27

Edited by author 02.02.2012 00:24

Edited by moderator 20.11.2019 00:17
Re: Is this a bug in the checking system?
Posted by Sandro (USU) 1 Feb 2012 11:59
The first code gets AC too. Try to submit it. There was another code (with bug) in your submit № 4100318.
Re: Is this a bug in the checking system?
Posted by V@n0 2 Feb 2012 00:22
You are right. Thanks. )) I hurried and was inattentive. But how can you see my submits? )) I tried to open someone's solutions but I couldn't. Why?
Re: Is this a bug in the checking system?
Posted by Smilodon_am [Obninsk INPE] 3 Feb 2012 11:18
Sandro is an administrator of this site.