Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157484 王晏林 生理周期 C++ Accepted 373 MS 272 KB 414 2026-07-24 13:30:25

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int p,e,z,d; cin>>p>>e>>z>>d; for(int i=1;i<=21252/23;i++){ for(int j=1;j<=21252/28;j++){ for(int c=1;c<=21252/33;c++){ if(p+i*23==e+j*28&&e+j*28==z+c*33){ printf("the next triple peak occurs in %d days.",p+i*23-d); } } } } return 0; }