12 条题解

  • 8
    @ 2024-3-24 10:22:04
    #include<bits/stdc++.h>
    using namespace std;
    int main(){ 
    	int n,i=0;
    	cin>>n;
    	while(i<=n){
    		i++;
    	if(i%3==2&&i%5==3&&i%7==2){
    		cout<<i<<endl;
    	}
    	} 
    	return 0;
    }
    
    • 2
      @ 2024-3-24 11:12:14
      #include<bits/stdc++.h>
      using namespace std;
      int main(){ 
      	int n,i=0;
      	cin>>n;
      	while(i<=n){
      		i++;
      	if(i%3==2&&i%5==3&&i%7==2){
      		cout<<i<<endl;
      	}
      	} 
      	return 0;
      }
      
      • 1
        @ 2024-3-31 10:02:20

        #include<bits/stdc++.h> using namespace std; int main(){ int n,i=0; cin>>n; while(i<=n){ i++; if(i%32&&i%53&&i%7==2){ cout<<i<<endl; } } return 0; }

        • 1
          @ 2024-3-29 14:22:23

          #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=(n-i+1);j++){ cout<<"*"; } cout<<endl;

          }
          return 0;
          

          }

          • 0
            @ 2024-5-24 16:55:01
            #include<bits/stdc++.h>
            using namespace std;
            int main(){ 
            	int n,i=0;
            	cin>>n;
            	while(i<=n){
            		i++;
            	if(i%3==2&&i%5==3&&i%7==2){
            		cout<<i<<endl;
            	}
            	} 
            	return 0;
            }
            
            • 0
              @ 2024-4-14 9:11:02

              #include<bits/stdc++.h> using namespace std; int main(){ int g,s,n,sum=0; cin>>n; for(int i = 0;i<=n;i++){ g = i%10; s = i/10; if(i%70 or g7 or s==7){ continue; } sum = sum+i*i;

              } cout<<sum; return 0;

              1. }
              • 0
                @ 2024-3-29 14:22:06

                #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=(n-i+1);j++){ cout<<"*"; } cout<<endl;

                }
                return 0;
                

                }

                • -2
                  @ 2024-3-24 10:17:15
                  #include<bits/stdc++.h>
                  using namespace std;
                  int main(){ 
                  	int n,i=0;
                  	cin>>n;
                  	while(i<=n){
                  		i++;
                  	if(i%3==2&&i%5==3&&i%7==2){
                  		cout<<i<<endl;
                  	}
                  	} 
                  	return 0;
                  }
                  
                  • -5
                    @ 2024-3-21 17:32:09

                    #include<bits/stdc++.h> using namespace std; int main(){ int n,i; cin>>n; for(i=1;i<=n;i++){ if(i%32 and i%53 and i%7==2){ cout<<i<<endl; } } }

                    • -12
                      @ 2024-3-17 10:48:30

                      #include<bits/stdc++.h> using namespace std; int main(){ int n,i; cin>>n; for(i=1;i<=n;i++){ if(i%32 and i%53 and i%7==2){ cout<<i<<endl; } } return 0; }

                      • -12
                        @ 2024-3-17 10:19:34

                        #include<bits/stdc++.h> using namespace std; int main(){ int n,i=0; cin>>n; while(i<=n){ i++; if(i%32&&i%53&&i%7==2){ cout<<i<<endl; } } return 0; }

                        • -13
                          @ 2024-3-21 17:47:28

                          我是智逼

                          • 1

                          信息

                          ID
                          2141
                          时间
                          1000ms
                          内存
                          256MiB
                          难度
                          2
                          标签
                          递交数
                          384
                          已通过
                          205
                          上传者