Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122658 刘益梵 15听到多少次掌声 C++ Accepted 0 MS 268 KB 346 2025-06-21 11:53:26

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a=0,b=0,c=0,x=1,m=0; while(a<10 || b<10 || c<10){ bool v=false; if(a<10){ v=true; a++; } if(x%2==0 && b<10){ v=true; b++; } if(x%4==0 && c<10){ v=true; c++; } if(v){ m++; } x++; } cout<<m; return 0; }