#8564: 請教各位高手~~問題何在?


CSE210608 (想像天然(C++))


#include<iostream> 
using namespace std;
int main()
{
    int n;
    while(cin >> n ){
        if(n%3==0)  cout << "yes" ;
        else  cout << "no" ; 
        cout << endl ;
    }
    return 0;
}

#8575: Re:請教各位高手~~問題何在?


dibery (Bor)


Use bignum to solve this problem.

int is not big enough, with its maximum value 2^31-1.