Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
12535 杨振航 【基础题】求和(3) C++ Accepted 2 MS 692 KB 169 2021-05-21 13:41:49

Tests(1/1):


Code:

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