Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153648 杨峻熙 生理周期 C++ Accepted 2 MS 272 KB 289 2026-05-23 16:45:02

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; int k; for(k=d+1;k<=d+21252;k++){ if((k-p)%23==0&& (k-e)%28==0&& (k-i)%33==0){ break; } } cout<<"the next triple peak occurs in "<<k-d<<" days."<<endl; return 0; }