6 条题解

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

    }

    信息

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