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

Where is my mistake?
Posted by Volov_Forever 21 Mar 2009 15:00
#include <iostream>
using namespace std;
int main ()
{
    string s;
    long long unsigned int n,g,g7;
    cin>>n;
    g=n/7;
    g7=g*7;
    cout<<n-g7<<endl;
    return 0;
}

Edited by author 21.03.2009 15:00
max(long long unsigned int)<10^50
Posted by OpenGL 21 Mar 2009 17:10


Edited by author 21.03.2009 17:11
Re: max(long long unsigned int)<10^50
Posted by Volov_Forever 10 Apr 2009 16:48
Thank you!!!Now I got AC