6 条题解

  • 2
    @ 2026-8-4 17:22:38

    抄题解的是la或gay

    • 1
      @ 2026-8-18 15:42:51

      #include <bits/stdc++.h> using namespace std;

      int main() { int a; cin >> a; if (a % 105 == 0) { cout << 3 << " " << 5 << " " << 7; } else if (a % 3 == 0 && a % 5 == 0) { cout << 3 << " " << 5; } else if (a % 5 == 0 && a % 7 == 0) { cout << 5 << " " << 7; } else if (a % 3 == 0 && a % 7 == 0) { cout << 3 << " " << 7; } else if (a % 3 == 0) { cout << 3; }

      else if (a % 5 == 0) {
      	cout << 5;
      
      
      } else if (a % 7 == 0) {
      	cout << 7;
      
      
      } else {
      	cout << "n";
      }
      
      return 0;
      

      }

      • -1
        @ 2026-8-10 11:33:18

        I like 67 I like 67 I like 67 I like 67 I like 67 I like 67

        • -1
          @ 2026-8-4 17:29:17

          #include <bits/stdc++.h> using namespace std;

          int main() { int a; cin >> a ; if (a % 3 % 5 % 7 == 0) { cout << "3 5 7 ";

          } else if {(a % 3 % 5 == 0)
                     cout <<  "3 5";
                    } else if {(a % 3 % 7 == 0)
          	                     cout <<  "3 7";
          	                    } else if {(a % 5 % 7 == 0)}
          		else if {(a % 3 == 0)cout <<  "3 ";}
          			else if {(a % 5 == 0)cout <<  "5";}
          				else  if {
          					(a % 7 == 0)
          						cout <<  "7";
          					}
          
          
          
          return 0;
          

          }

          • -1
            @ 2026-8-4 17:28:10

            我来助你

            • -1
              @ 2026-8-4 17:27:46

              #include using namespace std;

              int main() { int a; cin >> a; if (a % 105 == 0) { cout << 3 << " " << 5 << " " << 7; } else if (a % 3 == 0 && a % 5 == 0) { cout << 3 << " " << 5; } else if (a % 5 == 0 && a % 7 == 0) { cout << 5 << " " << 7; } else if (a % 3 == 0 && a % 7 == 0) { cout << 3 << " " << 7; } else if (a % 3 == 0) { cout << 3; }

              else if (a % 5 == 0) {
              	cout << 5;
              
              
              } else if (a % 7 == 0) {
              	cout << 7;
              
              
              } else {
              	cout << "n";
              }
              
              return 0;
              

              }

              • 1

              信息

              ID
              12004
              时间
              1000ms
              内存
              512MiB
              难度
              1
              标签
              递交数
              146
              已通过
              47
              上传者