1006 Biorhythms
来源:互联网 发布:js 文件下载 编辑:程序博客网 时间:2024/06/09 21:51
水题。
#include <stdio.h>int main(){ int t=1,p,e,i,d; while(scanf("%d%d%d%d",&p,&e,&i,&d) && p!=-1 && e!=-1 && i!=-1 && d!=-1) { p%=23; e%=28; i%=33; for (int j=0; ; j++) if ((p+23*j-e)%28==0 && (p+23*j-i)%33==0 && p+23*j>d) { printf("Case %d: the next triple peak occurs in %d days.\n",t,p+23*j-d); t++; break; } } return 0;}
- 1006 Biorhythms
- 1006 Biorhythms
- 1006 Biorhythms
- 1006 Biorhythms
- 1006:Biorhythms
- PKU 1006 Biorhythms
- poj 1006 Biorhythms
- pku 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
- linux ps命令
- IOS平台下OpenCV的配置和使用
- 1002 487-3279
- 我的决定
- TinyOS快速入门
- 1006 Biorhythms
- (转)深入理解HashMap
- linux c 进程控制
- 1011 Sticks
- hdu 4277 USACO ORZ (暴力+set容器判重)
- 排序算法 总结&思考(二)
- 128M vps上部署django应用的步骤
- HDU 4609 快速傅里叶变换
- 1012 约瑟夫变形