|
|
back to boardPleas help.WA on test 5 Posted by Akob 22 Mar 2007 22:58 #include <iostream.h> #include <stdio.h> int main() { unsigned __int64 sum; unsigned __int64 res; scanf("%I64d",&sum); res = sum % 7; printf("%I64d\n",res); return 0; } Re: Pleas help.WA on test 5 Do you really think that unsigned __int64 consist of 10^50 digits?? :) You should use long arithmetics, or strings. Think about it. Re: Pleas help.WA on test 5 Posted by Akob 23 Mar 2007 14:37 Thank you! I am soved it without long arithmetic. |
|
|