Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1890 | 杨洋杰 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 438 | 2023-11-26 17:39:19 |
#include<iostream> using namespace std; int main(){ int q=0,x=0,j=0,i=0,s=0; while(i<40){ if(i<10){ q=1; } else q=0; if(i<20&&i%2==0) x=1; else x=0; if(i%4==0) j=1; else j=0; if(q==1||x==1||j==1) s++; i++; } cout<<s<<endl; return 0; }