| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149492 | 赖泓宇 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 642 | 2026-03-13 18:52:08 |
#include <iostream> using namespace std; int main() { int count = 0; int t = 0; int frog = 0, panda = 0, chicken = 0; while (frog < 10 || panda < 10 || chicken < 10) { t++; bool clap = false; if (t % 1 == 0 && frog < 10) { frog++; clap = true; } if (t % 2 == 0 && panda < 10) { panda++; clap = true; } if (t % 4 == 0 && chicken < 10) { chicken++; clap = true; } if (clap) { count++; } } cout << count << endl; return 0; }