11 条题解

  • 0
    @ 2024-11-17 19:40:59

    #include using namespace std; int main(void) { int a; cin>>a; if(a%30&&a%50&&a%70) cout<<"3 5 7"; else if(a%30&&a%50) cout<<"3 5"; else if(a%30&&a%70) cout<<"3 7"; else if(a%50&&a%7==0) cout<<"5 7"; else cout<<"n"; return 0; }

    • 0
      @ 2024-3-10 9:46:26
      #include<bits/stdc++.h>
      using namespace std;       
      int main()
      {
          int a;
          cin>>a;
          if(a%3==0) printf("3 ");
          if(a%5==0) printf("5 ");
          if(a%7==0) printf("7");
          if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
          printf("\n");
          return 0;
      }
      
      • 0
        @ 2024-3-1 14:03:47
        #include<bits/stdc++.h>
        using namespace std;       
        int main()
        {
            int a;
            cin>>a;
            if(a%3==0) printf("3 ");
            if(a%5==0) printf("5 ");
            if(a%7==0) printf("7");
            if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
            printf("\n");
            return 0;
        }      
        
        • 0
          @ 2024-2-23 9:51:18
          #include<bits/stdc++.h>
          using namespace std;       
          int main()
          {
              int a;
              cin>>a;
              if(a%3==0) printf("3 ");
              if(a%5==0) printf("5 ");
              if(a%7==0) printf("7");
              if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
              printf("\n");
              return 0;
          }      
          
          
          • -1
            @ 2024-3-15 16:42:25
            #include<bits/stdc++.h>
            using namespace std;       
            int main()
            {
                int a;
                cin>>a;
                if(a%3==0) printf("3 ");
                if(a%5==0) printf("5 ");
                if(a%7==0) printf("7");
                if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
                printf("\n");
                return 0;
            }
            
            • -1
              @ 2024-3-10 10:15:14
              #include<bits/stdc++.h>
              using namespace std;       
              int main()
              {
                  int a;
                  cin>>a;
                  if(a%3==0) printf("3 ");
                  if(a%5==0) printf("5 ");
                  if(a%7==0) printf("7");
                  if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
                  printf("\n");
                  return 0;
              }
              
              • -1
                @ 2024-3-3 10:38:55

                #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%30) printf("3 "); if(a%50) printf("5 "); if(a%7==0) printf("7"); if(a%3!=0&&a%5!=0&&a%7!=0) printf("n"); printf("\n"); return 0; }

                • -1
                  @ 2024-3-1 22:07:13
                  #include<iostream>
                  using namespace std;       
                  int main()
                  {
                      int a;
                      cin>>a;
                      if(a%3==0) printf("3 ");
                      if(a%5==0) printf("5 ");
                      if(a%7==0) printf("7");
                      if(a%3!=0&&a%5!=0&&a%7!=0) printf("n");
                      printf("\n");
                      return 0;
                  }
                  
                  • -1
                    @ 2024-2-29 19:08:24

                    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a; b=3; c=5; d=7; if(a%b0){ cout<<b<<" "; } if(a%c0){ cout<<c<<" "; } if(a%d==0){ cout<<d<<" "; } if(a%b!=0 and a%c!=0 and a%d!=0){ cout<<"n"; } }

                    • -1
                      @ 2024-2-23 11:30:01
                      #include<bits/stdc++.h> 
                      using namespace std; 
                      int main() { 
                          int n;
                          cin>>n;
                      	if(n%3==0){
                          	cout<<"3"<<" ";
                      	}
                      	if(n%5==0){
                          	cout<<"5"<<" ";
                      	}
                      	if(n%7==0){
                          	cout<<"7"<<" ";
                      	}
                      	if(n%3!=0&&n%5!=0&&n%7!=0){
                      		cout<<"n";
                      	}
                      	
                      return 0;
                      }
                      
                      • -1
                        @ 2024-2-23 10:09:50

                        #include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%30 and a%50 and a%70){ cout<<"3"<<" "<<"5"<<" "<<"7"; } if(a%30 and a%50){ cout<<"3"<<" "<<"5"; } if(a%30 and a%70){ cout<<"3"<<" "<<"7"; } if(a%50 and a%70){ cout<<"5"<<" "<<"7"; } if(a%30 and a%5!=0 and a%7!=0){ cout<<"3"; } if(a%3!=0 and a%50 and a%7!=0){ cout<<"5"; } if(a%3!=0 and a%5!=0 and a%70){ cout<<"7"; } if(a%3!=0 and a%5!=0 and a%7!=0){ cout<<'n'; } return 0; }

                        • 1

                        信息

                        ID
                        2134
                        时间
                        1000ms
                        内存
                        256MiB
                        难度
                        2
                        标签
                        递交数
                        233
                        已通过
                        136
                        上传者