2 条题解

  • 1
    @ 2026-6-13 14:38:12
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	cout<<(!(n%3)?"yes":"no");
    }
    
    • 0
      @ 2024-12-24 9:54:30

      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;
      }
      
      • 1

      信息

      ID
      1152
      时间
      1000ms
      内存
      128MiB
      难度
      10
      标签
      (无)
      递交数
      5
      已通过
      4
      上传者