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

Common Board

SOS!!! Problems with C++! HELP...
Posted by Stratovarius 8 Jul 2006 13:00
I got AC with Pascal solution, and WA#3 with C++ solution.
May be I output wrong?
Output must be "eventually rounded up".

In Pascal I'm doing it like this:
if x<>trunc(x) then x:=trunc(x)+1;
write(x:0:0);

In C++:
cout << ceil(double(x));


Here is my C++ solution code (Problem 1113):

[code deleted]

Thank You!

Edited by moderator 08.07.2006 15:22