#5277: WA WHY?


scps2227995 (ckyo)


#include <iostream>
using namespace std;

int main()
{
long long int n;
  while (cin>>n){
 if (n%3==0)
  cout<<"yes\n";
 else
  cout<<"no\n";

 }
}

 

不知道哪裡錯誤= =...

請高手指教

#5278: Re:WA WHY?


grd (保持好奇心)


#include
using namespace std;

int main()
{
long long int n;
  while (cin>>n){
 if (n%3==0)
  cout<<"yes\n";
 else
  cout<<"no\n";

 }
}

 

overflow

不知道哪裡錯誤= =...

請高手指教