Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68969 余慕涵 生理周期 C++ Wrong Answer 275 MS 260 KB 412 2024-03-29 20:53:18

Tests(0/10):


Code:

#include <iostream> #include <cstdio> using namespace std; int main(){ int i,j,k,p,e,l,d,num=0; scanf("%d %d %d %d",&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)==(i+k*33))) printf("the next triple peak occurs in %d days.\n",p+i*23-d); }}} return 0; }


Run Info:

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