Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1839 孙浚轩 15听到多少次掌声 C++ Accepted 0 MS 252 KB 424 2023-11-12 00:30:08

Tests(1/1):


Code:

#include<iostream> using namespace std; int main() { int a=0,b=0,c=0,i=0,s=0; while(i<40) { if(i<10) a=1; else a=0; if(i<20&&i%2==0) b=1; else b=0; if(i%4==0) c=1; else c=0; if(a==1||b==1||c==1) s++; i++; } cout<<s; return 0; }