蒟蒻并不会中国剩余定理
交的时候还出现了PE的错误
下面是AC代码
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int p,e,i,d,T=
1;
cin>>p>>e>>i>>
d;
do{
int lcm=
21252;
int ans=(
5544*p+
14421*e+
1288*i-d+lcm)%
lcm;
if(ans==
0) ans=
lcm;
cout<<
"Case "<<T++<<
": the next triple peak occurs in "<<ans<<
" days."<<
endl;
cin>>p>>e>>i>>
d;
}while(p!=-
1);
return 0;
}
本蒟蒻并不知道这个代码是什么意思
本蒟蒻太弱了
转载于:https://www.cnblogs.com/lincold/p/9774524.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-72901.html