Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1838 孙浚轩 15听到多少次掌声 C++ Wrong Answer 0 MS 260 KB 426 2023-11-12 00:26:18

Tests(0/1):


Code:

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


Run Info:

------Input------
0
------Answer-----
20
------Your output-----
30