Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140935 李昱龙 15听到多少次掌声 C++ Accepted 0 MS 260 KB 368 2025-12-20 14:39:13

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int xqw=0,xxm=0,xyz=0; int time=0,cnt=0; while(xqw+xxm+xyz<30){ bool a=0; if(time%1==0&&xqw<10){ xqw++; a=1; } if(time%2==0&&xxm<10){ xxm++; a=1; } if(time%4==0&&xyz<10){ xyz++; a=1; } if(a==1) cnt++; time++; } cout<<cnt; return 0; }