| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163605 | 成书骏 | 生理周期 | C++ | Accepted | 1 MS | 272 KB | 760 | 2026-10-26 20:50:34 |
#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,tl=0,qg=0,zs=0; cin>>p>>e>>i>>d; for(int j=d;;j++){ if((j-p)%23==0){ tl=1; } else{ tl=0; } if((j-e)%28==0){ qg=1; } else{ qg=0; } if((j-i)%33==0){ zs=1; } else{ zs=0; } if(tl&&qg&&zs){ printf("the next triple peak occurs in %d days.",j-d); return 0; } } }