Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153647 陈棋 生理周期 C++ Accepted 1 MS 272 KB 271 2026-05-23 16:42:10

Tests(10/10):


Code:

#include<iostream> 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; }