|
|
вернуться в форумPleas help.WA on test 5 Послано Akob 22 мар 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 Послано Akob 23 мар 2007 14:37 Thank you! I am soved it without long arithmetic. |
|
|