Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7176 | 黄宜洋 | 生理周期 | C++ | Accepted | 226 MS | 264 KB | 662 | 2025-04-05 14:49:16 |
#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 pp=1;pp<=21252/23;pp++){ for(int ee=1;ee<=21252/28;ee++){ for(int ii=1;ii<=21252/33;ii++){ if(p+pp*23==e+ee*28&&e+ee*28==i+ii*33){ printf("the next triple peak occurs in %d days.",p+pp*23-d); return 0; } } } } return 0; }