POJ 1006 Biorhythms (入门)
来源:互联网 发布:c语言开发单片机 编辑:程序博客网 时间:2024/05/17 01:07
POJ 1006
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;int main() {int p, e, i, d;int n = 1;while(~scanf("%d %d %d %d", &p, &e, &i, &d)) {if(p == -1 && e == -1 && i == -1 && d == -1) break;p %= 23, e %= 28, i %= 33;int j;for(j = 1; j <= 21252; j++) {if((j + d) % 23 == p && (j + d) % 28 == e && (j + d) % 33 == i) {printf("Case %d: the next triple peak occurs in %d days.\n", n++, j);break;}}}return 0;}
0 0
- POJ 1006 Biorhythms (入门)
- 【POJ】1006 - Biorhythms(CRT)
- 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 Biorhythms(剩余定理)
- POJ 1006 Biorhythms (中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- POJ 1006 && HDU 1370 Biorhythms(水~)
- POJ 1006 Biorhythms(中国剩余定理)
- poj 1006 Biorhythms(中国剩余定理)
- 闭包只是一种设计原则
- Java学习笔记(一)对象与类
- 【spark】使用线性回归对葡萄酒质量进行预测
- jni编程,使用javah命令生成方法签名头文件
- windows下python protobuf 安装
- POJ 1006 Biorhythms (入门)
- UEditor-golang
- bzoj 2588(树链剖分+主席树)
- python中使用fork创建新的进程
- 数据清洗实例分析
- pomelo的HelloWorld
- 蓝桥杯试题 取球游戏
- Android学习笔记——TextInputLayout
- MySQL日期数据类型、时间类型使用总结