Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95220 任斌 生理周期 C++ Accepted 343 MS 272 KB 323 2024-10-27 10:16:04

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=1;j<=924;j++){ for(int q=1;q<=759;q++){ for(int z=1;z<=644;z++){ if(p+j*23==e+q*28 && p+j*23==i+z*33) printf("the next triple peak occurs in %d days.\n",p+j*23-d); } } } return 0; }