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 1519. Formula 1

WA on TEST#18 in G++ but AC in VC++
Posted by __dynamic 1 Mar 2014 21:40
That's magical and I don't think there's any undefined behaviors etc. in my code..
Those who are puzzled in ridiculous WA may try to change the compiler.
Re: WA on TEST#18 in G++ but AC in VC++
Posted by __dynamic 1 Mar 2014 21:41
Code pasted here:fayaa.com/code/view/28059/
Re: WA on TEST#18 in G++ but AC in VC++
Posted by gconeice 3 Jun 2014 21:26
Maybe you use "%lld" to output the answer?
I think the compiler in Ural may be based on Windows.