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 1243. Divorce of the Seven Dwarfs

Pleas 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
Posted by Romko [Lviv NU] 23 Mar 2007 00:22
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.
Posted by DeepInside 29 Sep 2007 00:48