C :
#include<stdio.h> int main() { int a; scanf("%d",&a); if(a%3==0){ printf("yes"); } return 0; }
C++ :
#include <iostream> #include <cstdio> using namespace std; int main() { int x; cin>>x; if(x%3 == 0) { cout<<"yes"<<endl; } else { // cout<<"no"<<endl; } return 0; }
注册一个 SeekDeep 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 SeekDeep 通用账户