26 条题解

  • 5
    @ 2024-2-23 9:32:31
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a;
        cin>>a;
        if(a%2==0){
        cout<<"even";
    }
        if(a%2!=0){
        cout<<"odd";
    }
    return 0;
    }
    
    • 3
      @ 2024-4-21 10:22:38

      #include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(x>=0&&x<5){ y=-x+2.5; } if(x>=5&&x<10){ y=2-1.5*(x-3)*(x-3); } if(x>=10&&x<20){ y=x/2-1.5; } printf("%.3lf",y); return 0; }

      • 3
        @ 2024-2-23 10:02:38

        #include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%20){ cout<<"even"; } if(a%21){ cout<<"odd"; } return 0; }

        • 2
          @ 2024-2-23 10:50:18

          #include using namepace std; int main() { int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }

          很好用,信我

        • 2
          @ 2024-2-23 10:49:12

          #include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }


          • 2
            @ 2024-2-23 9:48:01

            #include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%2==0){ cout<<"even"; } if(n%2!=0){ cout<<"odd"; } return 0; }

          • 1
            @ 2024-4-21 10:34:47

            #include using namespace std; int main(){ double a,b; cin>>a>>b; if(a==b){ cout<<"="; } if(a>b){ cout<<">"; } if(a<b){ cout<<"<"; } return 0; }

            • 1
              @ 2024-2-23 10:50:31

              #include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }

              • 1
                @ 2024-2-23 10:04:31

                #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%20){ cout<<"even"<<endl; } if(n%21){ cout<<"odd"<<endl; } return 0; }

                • 1
                  @ 2024-2-23 9:27:50

                  #include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%2==0){ cout<<"even"; } if(a%2!=0){ cout<<"odd"; } return 0; }

                  • 0
                    @ 2024-11-14 17:30:17

                    #include using namespace std; int main (){ int n; cin>>n; if(n%2==1) cout<<"odd"; else cout<<"even"; return 0; }

                    • 0
                      @ 2024-7-28 14:39:38

                      #include <bits/stdc++.h> using namespace std; queues; int main(){ int a,b; cin>>a>>b; for(int i=1;i<=a;i++){ s.push(i);

                      } 
                      while(!s.empty()){
                      	for(int i=1;i<b;i++){
                      		s.push(s.front());
                      		s.pop();
                      	}
                      	cout<<s.front()<<" "; 
                      	s.pop();
                      }
                      return 0;
                      

                      }

                      • 0
                        @ 2024-7-28 14:34:55

                        #include <bits/stdc++.h> using namespace std; queues; int main(){ int a,b; cin>>a>>b; for(int i=1;i<=a;i++){ s.push(i);

                        } 
                        while(!s.empty()){
                        	for(int i=1;i<=b;i++){
                        		s.push(s.front());
                        		s.pop();
                        	}
                        	cout<<s.front()<<" "; 
                        	s.pop();
                        }
                        

                        }

                        • 0
                          @ 2024-2-23 10:04:47

                          #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%20){ cout<<"even"<<endl; } if(n%21){ cout<<"odd"<<endl; } return 0; }

                          • 0
                            @ 2024-2-23 9:56:48

                            #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2!=0){ cout<<"odd"<<endl; } if(n%2==0){ cout<<"even"<<endl; } return 0; }

                            • 0
                              @ 2024-2-23 9:20:17
                              #include<iostream>
                              using namespace std;
                              int main(){
                              	int n;
                              	cin>>n;
                              	if(n%2==0) cout<<"even";
                              	if(n%2!=0) cout<<"odd";
                              	return 0;
                              }
                              
                              • 0
                                @ 2024-2-22 11:21:10
                                #include<iostream>
                                using namespace std;
                                int main(){
                                	int n;
                                	cin>>n;
                                	if(n%2==0) cout<<"even";
                                	if(n%2!=0) cout<<"odd";
                                	return 0;
                                }
                                
                                • -1
                                  @ 2024-2-23 9:24:39
                                  #include <iostream>
                                  using namespace std;
                                  int main()
                                  {
                                      int a;
                                      cin>>a;
                                      if(a%2==1)
                                      {
                                          cout<<"odd";
                                      }
                                      if(a%2==0)
                                      {
                                          cout<<"even";
                                      }
                                      return 0;
                                  }
                                  
                                  • -1
                                    @ 2024-2-22 20:59:46

                                    #include using namespace std; int main(){ int n,x; cin>>n; x=n%2; if(x==0){ cout<<"even"; } else{ cout<<"odd"; } return 0; }

                                    • -1
                                      @ 2024-2-22 11:19:11

                                      👍👍 👍👀️

                                      #inlude<iosteam>
                                      using namepace std;
                                      int main()
                                      {   int a;
                                      	cin>>a;
                                          if(a%2==0){
                                          cout<<"even";}
                                          if(a%2!=0){
                                          cout<<"odd";}
                                          return 0;
                                       }
                                      

                                      信息

                                      ID
                                      2066
                                      时间
                                      1000ms
                                      内存
                                      256MiB
                                      难度
                                      1
                                      标签
                                      递交数
                                      668
                                      已通过
                                      395
                                      上传者