Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
49474 | 冯诚阳 | 生理周期 | C++ | Accepted | 302 MS | 268 KB | 482 | 2023-07-05 14:29:41 |
# include<iostream> # include<cmath> # include<cstdio> using namespace std; int main(){ //OJ1494 int i,j,k,p,e,l,d; 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)==(l+k*33))){ printf("the next triple peak occurs in %d days.\n",p+i*23-d); } } } } return 0; }