Poj 1006 Biorhythms
来源:互联网 发布:淘宝助理下载不了订单 编辑:程序博客网 时间:2024/06/03 00:18
题目:http://poj.org/problem?id=1006
水题。枚举。
#include <iostream>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <algorithm>#include <stack>#include <queue>#include <map>using namespace std;int a[1000003];int main(){#ifndef ONLINE_JUDGE freopen("in.txt","r",stdin);#endif int p,e,i,d; int cas = 0; while(scanf(" %d %d %d %d",&p,&e,&i,&d)!=EOF) { cas++; if (p==-1) { break; } int temp = d; d++; while((d-p)%23!=0) { d++; } while((d-e)%28!=0 || (d-i)%33!=0) { d+=23; } printf("Case %d: the next triple peak occurs in %d days.\n",cas,d-temp); } return 0;}
- 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 Biorhythms
- POJ 1006 Biorhythms
- poj 1006 hdu1370 Biorhythms
- 【POJ】1006 Biorhythms
- poj 1006 Biorhythms
- 右键获取listview控件各个单元格的值,想更改就简单了吧
- uva321 - The New Villa(新别墅)
- Mtk 下的图形渲染配置文件egl.cfg
- PDP分组数据协议
- 判断数组中是否有重复的数——微软面试题
- Poj 1006 Biorhythms
- Silverlight调用的JS方法返回对象数组的处理方法
- Tomcat使用startup可以启动,windows服务无法启动
- cpsr与cpsr_c的区别
- 如何去掉activity启动时的启动窗口(starting window)?
- float a=1.0f 这里的1.0f中的“f”代表什么 ?float的储存格式?
- 合格的电子工程师需要掌握的知识和技能
- 记录下原厂的回复----升级UDB
- 利用JAVA类实现九九乘法口诀