Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119760 | 罗子童 | 生理周期 | C++ | Wrong Answer | 311 MS | 272 KB | 595 | 2025-05-18 18:37:52 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int l=p;l<=21252;l+=23){ for(int j=e;j<=21252;j+=28){ for(int k=i;k<=21252;k+=33){ if(i==j&&i==k){ cout<<"the next triple peak occurs in "<<l*j*k-d<<" days."; } } } } return 0; }
------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----