| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78380 | 王馨桐 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 257 | 2024-06-18 20:06:20 |
#include<bits/stdc++.h> using namespace std; int main(){ int ci=1,zs=0; while(ci<=40){ if(ci%1==0&&ci<=10){ zs++; }else if(ci%2==0&&ci<=20){ zs++; }else if(ci%4==0&&ci<=40){ zs++; } ci++; } cout <<zs; return 0; }