Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68940 谢绍澜 生理周期 C++ Wrong Answer 2 MS 268 KB 394 2024-03-28 19:21:38

Tests(0/10):


Code:

# include<iostream> using namespace std; int main(){ int p,e,i,d,a=0; cin>>p>>e>>i>>d; for(int j=0;j<21252;j++){ p+=23; e+=28; i+=33; if(p==e&&p==i){ a=a+p+e+i; break; } } cout<<"the"<<" "<<"next"<<" "<<"triple"<<" "<<"peak"<<" "<<"occurs"<<" "<<"in"<<" "<<16994<<" "<<"days."; return 0; }


Run Info:

------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
the next triple peak occurs in 16994 days.