Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111564 | 任紫谦 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 264 KB | 444 | 2025-03-02 15:42:32 |
#include <iostream> using namespace std; int main(){ int t=0,c=1,qw=1,xm=1,xy=1,f=0; while(qw+xm+xy<30){ f=0; t++; if(qw<10){ f=1; qw++; } if(xm<10&&t%2==0){ f=1; xm++; } if(xy<10&&t%4==0){ f=1; xy++; } if(f==1){ c++; } } cout<<c<<endl; }