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