Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7161 | 黄宜洋 | 生理周期 | C++ | Wrong Answer | 0 MS | 260 KB | 593 | 2025-04-05 14:27:49 |
#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(p;p<=365-p;p+=23){ for(e;e<=365-e;e+=28){ for(i;i<=365-i;i+=33){ if(p==e&&e==i){ printf("the next triple peak occurs in %d days.",p-d); } } } } return 0; }
------Input------
291 133 66 343
------Answer-----
the next triple peak occurs in 3122 days.
------Your output-----