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 1942. Attack at the Orbit

WA 18
Posted by Yagudin Ruslan 5 Jan 2013 22:50
Why Wa18? What is test?
Re: WA 18
Posted by alp 14 Jan 2013 21:30
I think fraction part.
AC got
q:=q*100000;
q_int:=round(q) div 100;
BUT WA 34 got
q:=q*100000;
q_int:=trunc(q) div 100;
and
q:=q*10000;
q_int:=trunc(q) div 10;
Re: WA 18
Posted by ToadMonster 1 Dec 2015 21:45
Here is test:
2
0.1 0
-1.9 0
----------
2 0.100000