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 1688. Team.GOV!

an100000 WA 11 [11] // Problem 1688. Team.GOV! 28 Feb 2009 14:33
What is wrong with this test?
Le Do Hoang Nam Re: WA 11 [10] // Problem 1688. Team.GOV! 28 Feb 2009 14:45
use s > 3*n instead of s / 3 > n
fR0D Re: WA 11 [6] // Problem 1688. Team.GOV! 28 Feb 2009 14:58
whats wrong with this program?
Got AC using __int64 instead of long long.
Anybody willing to explain why?
Whats the difference between __int64 and long long?

Edited by author 28.02.2009 15:59
Le Do Hoang Nam Re: WA 11 [4] // Problem 1688. Team.GOV! 28 Feb 2009 15:48
because s can be greater than max(long long). Use int64 instead.
fR0D Re: WA 11 [3] // Problem 1688. Team.GOV! 28 Feb 2009 16:03
But the maximum value of s can be 3000*2*10^6 which is well within the range of long long?
Monyura Re: WA 11 [2] // Problem 1688. Team.GOV! 28 Feb 2009 16:20
I use int64 and s>n*3 but have WA10, what's wrong with this program?
zsyzhbc_china Re: WA 11 [1] // Problem 1688. Team.GOV! 5 Jan 2010 10:47
me too
Tural Neymanov Re: WA 11 // Problem 1688. Team.GOV! 12 Mar 2010 00:23
maybe you should use qword instead of int64 as i did? do not forget to make them both qword and multiply first by three rather than dividing another one.
Artem Fast Re: WA 11 // Problem 1688. Team.GOV! 11 Feb 2012 20:05
u can use unsigned long long and get AC
an100000 Re: WA 11 [2] // Problem 1688. Team.GOV! 28 Feb 2009 15:13
But if i use it i have wa 10
BVitaly Re: WA 11 // Problem 1688. Team.GOV! 28 Feb 2009 15:24
Wrong Answer 2
in my pascal code  and in this /\ /\ /\ C code
bigtik Re: WA 11 // Problem 1688. Team.GOV! 19 Oct 2011 04:50
use long... something biger than int is needed.