2 条题解

  • 0
    @ 2025-12-27 14:56:39
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    	int a,b;
    	cin>>a>>b;
    	int sum=0;
    	while(a<=b){
    		if(a%2!=0){
    			sum+=a;
    		}
    		a++;
    	}
    	cout<<sum;
    return 0;
    }
    
    
    • 0
      @ 2025-12-21 15:06:00

      • 1

      信息

      ID
      53
      时间
      1000ms
      内存
      256MiB
      难度
      10
      标签
      递交数
      19
      已通过
      8
      上传者