Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135467 Kevin 生理周期 C++ Wrong Answer 1 MS 272 KB 211 2025-11-03 19:12:25

Tests(0/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<<j-d; } } return 0; }


Run Info:

------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
749