Run ID:149492

提交时间: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; }