POJ 1006
来源:互联网 发布:河北省网络直报平台 编辑:程序博客网 时间:2024/06/03 14:42
#include<iostream>using namespace std;int main(){ int p,e,i,d,date; int cas = 0; while (cin>>p>>e>>i>>d ) { if(p == -1 && e == -1 && i == -1 && d == -1 ) break; date = d; ++d; while ((d - p) % 23 != 0) { ++d; } while ((d - e) % 28 != 0 || (d - i)%33 != 0) { d += 23; } cout<<"Case "<<++cas<<": the next triple peak occurs in "<<d - date<<" days."<<endl; } return 0; }
0 0
- POJ[1006]
- POJ 1006
- poj 1006
- poj 1006
- poj 1006
- POJ 1006
- poj 1006
- poj 1006
- POJ-1006
- poj 1006
- POJ 1006
- poj 1006
- POJ 1006
- POJ-1006
- POJ 1006
- POJ 1006
- poj--1006
- POJ 1006
- sgu151:Construct a triangle
- POJ 1005
- Genymotion 模拟器
- poj 1703 Find them, Catch them 【并查集拓展】
- Windows PE文件结构简介
- POJ 1006
- Java进阶之JDBC知识点总结
- 常用元件封装
- count and say leetcode c++
- 摄像机标定用于机械臂抓举等(利用标定将图像上的点映射为三维坐标)
- 每天一道ACM(1003)--斐波那契数列
- POJ 1011
- android机子重启
- linux 如何控制cpu资源使用