Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135469 Kevin 生理周期 C++ Accepted 1 MS 276 KB 267 2025-11-03 19:15:24

Tests(10/10):


Code:

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