Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67544 孙诗皓 15听到多少次掌声 C++ Wrong Answer 0 MS 276 KB 373 2024-03-16 17:09:30

Tests(0/1):


Code:

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


Run Info:

------Input------
0
------Answer-----
20
------Your output-----
8