|
|
back to boardShow all messages Hide all messagesWA 11 an100000 28 Feb 2009 14:33 What is wrong with this test? use s > 3*n instead of s / 3 > n 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 because s can be greater than max(long long). Use int64 instead. But the maximum value of s can be 3000*2*10^6 which is well within the range of long long? I use int64 and s>n*3 but have WA10, what's wrong with this program? 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. u can use unsigned long long and get AC But if i use it i have wa 10 Wrong Answer 2 in my pascal code and in this /\ /\ /\ C code use long... something biger than int is needed. |
|
|