Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
34007 马祎杨 生理周期 C++ Accepted 436 MS 748 KB 347 2022-08-01 14:49:43

Tests(10/10):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int i,j,k,p,e,l,d; cin>>p>>e>>l>>d; for(i=1;i<=924;i++){ for(j=1;j<=759;j++){ for(k=1;k<=644;k++){ if(((p+i*23)==(e+j*28))&&((p+i*23)==(l+k*33))) printf("the next triple peak occurs in %d days.\n",p+i*23-d); } } } return 0; }