#include <iostream>
using namespace std;
int main(int argc, char** argv) {
long long int x;
while(cin >> x){
if(x%3==0)
cout << "yes";
else
cout << "no";
}
return 0;
}
#include
using namespace std;
int main(int argc, char** argv) {
long long int x;
while(cin >> x){
if(x%3==0)
cout << "yes";
else
cout << "no";
}
return 0;
}
你用long long 當然WA阿
要不要考慮一下用字串存起來