Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87394 | Kevin | 【基础题】求和(3) | C++ | Accepted | 0 MS | 260 KB | 158 | 2024-08-09 15:44:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int s=0; for(int i=1;i<=100;i++){ if(i%2){ s+=i; } } cout<<s; return 0; }