17 条题解

  • 3
    @ 2024-3-15 16:32:08
    #include<bits/stdc++.h> 
    using namespace std; 
    int main(){ 
        int b,c=0,d; 
        cin>>b>>d; 
        for(b=c+b;b<=d;b++){ 
            if(b%2==1){ 
                c=c+b; } 
            } 
            cout<<c; }
    
    • 0
      @ 2024-3-29 17:13:33
      using namespace std;
      int main(){
      int b,c=0,d;
      cin>>b>>d;
      for(b=c+b;b<=d;b++){
      if(b%2==1){
      c=c+b; }
      }
      cout<<c;
      
      }
      
      
      • 0
        @ 2024-3-29 17:12:18
        #include<bits/stdc++.h>using namespace std;int main(){int b,c=0,d;cin>>b>>d;for(b=c+b;b<=d;b++){if(b%2==1){c=c+b; }}cout<<c; }```
        
        • 0
          @ 2024-3-29 17:11:45
          
          

          #include<bits/stdc++.h> using namespace std; int main(){ int b,c=0,d; cin>>b>>d; for(b=c+b;b<=d;b++){ if(b%2==1){ c=c+b; } } cout<<c; }

          
          
          • 0
            @ 2024-3-29 17:11:04

            #include<bits/stdc++.h> using namespace std; int main(){ int b,c=0,d; cin>>b>>d; for(b=c+b;b<=d;b++){ if(b%2==1){ c=c+b; } } cout<<c; }

            • 0
              @ 2024-3-24 9:14:48
              #include<bits/stdc++.h> 
              using namespace std; 
              int main(){ 
                  int b,c=0,d; 
                  cin>>b>>d; 
                  for(b=c+b;b<=d;b++){ 
                      if(b%2==1){ 
                          c=c+b; } 
                      } 
                      cout<<c; }
              
              • 0
                @ 2024-3-24 9:14:19
                #include<bits/stdc++.h> 
                using namespace std; 
                int main(){ 
                    int b,c=0,d; 
                    cin>>b>>d; 
                    for(b=c+b;b<=d;b++){ 
                        if(b%2==1){ 
                            c=c+b; } 
                        } 
                        cout<<c; }
                
                • 0
                  @ 2024-3-17 8:58:58

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

                  • -1
                    @ 2024-3-24 10:00:20

                    89 UU FUI FRFFFRFUH

                    • -1
                      @ 2024-3-24 9:22:40

                      不许抄答案

                      • -1
                        @ 2024-3-24 9:16:45

                        不要抄答案

                        • -1
                          @ 2024-3-10 11:38:05

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

                          • -2
                            @ 2024-3-22 17:45:05

                            #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c=0; cin>>a>>b; while(a<=b){ if(a%2==1) c=c+a; a++; } cout<<c; return 0; }

                            • -3
                              @ 2024-3-24 9:21:28

                              #include<bits/stdc++.h> using namespace std; int main(){ int m,n,sum = 0; cin>>m>>n; for(int i = m;i<=n;i++){ if(i%2==1){ sum +=i; } } cout<<sum; return 0; } 勿抄 不然晚上偷你家马桶盖

                              • -3
                                @ 2024-3-24 9:19:02

                                segedrtutywqetreqwertyuuiopop;ljgfsasvnm,.. tyftggfgffcvxsedgvvbfg

                                • -13
                                  @ 2024-3-5 22:01:12
                                  #include<bits/stdc++.h> 
                                  using namespace std; 
                                  int main(){ 
                                      int b,c=0,d; 
                                      cin>>b>>d; 
                                      for(b=c+b;b<=d;b++){ 
                                          if(b%2==1){ 
                                              c=c+b; } 
                                          } 
                                          cout<<c; }
                                  
                                • -14
                                  @ 2024-3-4 19:57:17

                                  #include<bits/stdc++.h> using namespace std; int main(){ int b,c=0,d; cin>>b>>d; for(b=c+b;b<=d;b++){ if(b%2!=0){ c=c+b; } } cout<<c; }

                                  • 1

                                  信息

                                  ID
                                  829
                                  时间
                                  1000ms
                                  内存
                                  256MiB
                                  难度
                                  7
                                  标签
                                  递交数
                                  1068
                                  已通过
                                  279
                                  上传者