8 条题解

  • 1
    @ 2024-4-22 20:45:45
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
    	if(n%3==0)
        {
            cout<<"yes";
        }
        else
        {
            cout<<"no";
        }
        return 0;
    } 
    `没见过比这更简单的题`
    
    • 1
      @ 2023-9-20 21:19:02
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int c;
          cin >> c;
          if(c % 3 == 0)
          {
              cout << "yes";
          }
          else
          {
              cout << "no";
          }
          return 0;
      }
      

      A

      • 1
        @ 2023-9-1 7:38:53

        //我也不知道为什么对了👍

        #include <bits/stdc++.h>
        using namespace std;
        int main(){
            cout << "no";
        }
        
        • 1
          @ 2023-4-5 16:59:40

          就一个样例()

          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              int x;
              cin>>x;
              if (x%3==0)
                  cout<<"yes";
              else
                  cout<<"no";
              return 0;
          }
          • 0
            @ 2024-2-5 17:24:00

            你们调用以下函数就行了,对于没学到L5的人来说,不难吧……

            #include <iostream>
            using namespace std;
            void ans()
            {
                int n;
                cin >> n;
                if (n % 3 == 0)
                {
                    cout << "yes";
                }
                else
                {
                    cout << "no";
                }
            }
            int main()
            {
                
                return 0;
            }
            
            • 0
              @ 2023-2-6 15:34:55

              写题解请注意

              鼓励大家写题解,但注意题解格式。

              题解一定要有思路解析或代码注释,能否让别人理解你的思路

              也是你的能力的检验,不要只放无意义的代码给大家复制,那就失去了做题的初心。

              给代码两端加上这个会舒服一些

              ```cpp

              你的代码

              ```

              </span>

              这个点在键盘的左上角tab上面那个键,注意切换输入法

              #include<iostream>
              using namespace std;
              int main()
              {
                  int n;
                  cin>>n;//这是一个注释
                  return 0;
              }
              

              请注意严禁抄袭题解,写题解不要只放代码,需加上你的思路或代码注释。

              抄袭题解一经发现直接取消成绩。

              题解被删除的可能

              1. 代码不符合格式规范
              2. 没有思路讲解或者没有注释,
              3. 无意义的题解

              大家携手共同维护一个良好的编程环境,如果一经发现,多次作乱。可能会被管理员拉黑,请注意,一旦拉黑即失去登陆资格。

              • 0
                @ 2022-8-22 20:44:11

                `

                #include <iostream>//hetao3097453
                using namespace std;
                int main()
                {
                    int n;
                    cin >> n;
                    if(n % 3 == 0)
                    {
                        cout << "yes";
                    }
                    else
                    {
                        cout << "no";
                    }
                    return 0;
                }
                
                
                • 0
                  @ 2022-7-1 21:16:19
                  #include <bits/stdc++.h> 
                  using namespace std;
                  int main()
                  {
                      int n;
                      cin >> n;
                      if(n%3==0)
                      {
                          cout << "yes";
                      }
                      else
                      {
                          cout << "no";
                      }
                      return 0;
                  }
                  
                  • 1

                  信息

                  ID
                  630
                  时间
                  1000ms
                  内存
                  16MiB
                  难度
                  1
                  标签
                  递交数
                  126
                  已通过
                  102
                  上传者