Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122967 王镜铭 12奇数和与偶数和 C++ Wrong Answer 0 MS 256 KB 175 2025-06-22 12:23:58

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; for(int i=a,s=0,x=0;i<=b;i++){ if(i%2==0){ s+=i; } else{ x+=i; } } return 0; }


Run Info:

------Input------
5 103
------Answer-----
2646 2700
------Your output-----