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 1402. Cocktails

2 Admins
Posted by Teacher30 14 Feb 2009 14:50
Check submissions
2451465
2451467
2451474
Your system's answers: WA-14, AC, WA-13

In real these solutions give SAME answers on all tests.

Please, answer me.
And again about compilers
Posted by Teacher30 14 Feb 2009 15:00
Compiler for C++ = Intel C++ Compiler 7.0, which is adjusted to be compatible with Microsoft Visual Studio 7.0
Compiler for C# = Microsoft Visual C# 2008 version 3.5.30729.1 (.NET Framework 3.5)

Why don't you use Microsoft Visual C++ 2008 ?
I've already got a lot of troubles with this "adjusted to be compatible" compiler.
Re: 2 Admins
Posted by Vladimir Yakovlev (USU) 14 Feb 2009 17:05
It is known issue for ICL 7.0:
  printf("%I64d\n", (long long)1e15);
produces output
  2147483647
Re: 2 Admins
Posted by Teacher30 14 Feb 2009 17:18
Thank you! =)
Re: 2 Admins
Posted by Teacher30 14 Feb 2009 17:26
Hm...

__int64 inf = floor(1e13); works OK
but
__int64 inf = 1e13; gets WA-13

Aaaa!!! What don't I know about reduction of types in C++ yet? :)