poj 1006(中国剩余定理)
来源:互联网 发布:用友网络下周会停牌 编辑:程序博客网 时间:2024/06/10 23:05
手动算出来就可以中间过程。。。。。然后带进去就可以了。。。。
#include <iostream>using namespace std;int main(int argc, char** argv) { int p,i,e,d,ans,cas=1; while(scanf("%d%d%d%d",&p,&e,&i,&d) && (p>=0)){ ans=(5544*p+14421*e+1288*i-d+21252)%21252; if(ans==0) ans=21252; printf("Case %d: the next triple peak occurs in %d days.\n",cas++,ans); } return 0;}
- poj 1006(中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- POJ 1006(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms (中国剩余定理)
- POJ - 1006 Biorhythms (中国剩余定理)
- POJ-1006-Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms (中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- 中国剩余定理 ( POJ 1006 )
- poj 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- poj 1006(中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- POJ 1006 Biorhythms(中国剩余定理)
- Gentoo编译内核
- 《java编程思想》第二章 笔记
- visio中创建自定义的数据类型
- 光缆衰减标准(待补充)
- 两种方法实现Windows系统服务自动运行SVN
- poj 1006(中国剩余定理)
- shell脚本变量学习小记
- wordpress学习第四篇
- 黑马程序员—交通灯管理系统
- POJ2454 Jersey Politics ——贪心+随机化算法
- Oracle 实例恢复时 前滚 后滚说明
- VS2010 调试技巧
- 再难重回
- 笔记