POJ1006-Biorhythms
来源:互联网 发布:云服务器支持java 编辑:程序博客网 时间:2024/06/04 20:46
#include<iostream>using namespace std;int main(){int p, e, i, d, ans;int num = 1;while (num) {cin >> p >> e >> i >> d;if (p == -1 && e == -1 && i == -1 && d == -1)break;ans = (5544 * p + 14421 * e + 1288 * i) % (23 * 28 * 33) - d;while (ans <= 0)ans += 21252;cout << "Case " << num << ": the next triple peak occurs in " << ans << " days.\n";num++;}return 0;}
阅读全文
0 0
- POJ1006 Biorhythms
- POJ1006 Biorhythms
- POJ1006 Biorhythms
- Poj1006 Biorhythms
- POJ1006 Biorhythms
- Biorhythms (POJ1006)
- poj1006 Biorhythms
- POJ1006-Biorhythms
- POJ1006-Biorhythms
- 【poj1006】 Biorhythms
- poj1006 Biorhythms
- POJ1006 Biorhythms
- [poj1006]Biorhythms
- POJ1006:Biorhythms
- POJ1006 Biorhythms
- POJ1006-Biorhythms
- POJ1006 Biorhythms
- poj1006 Biorhythms
- Spring Boot学习--logback与properties配置文件
- 1038 贪心
- Trig Function
- Java在外部类的方法中创建内部类对象
- 蚯蚓
- POJ1006-Biorhythms
- Windows的安装
- 算法设计9_16
- ZooKeeper快速上手
- C#中的变量与运算符
- iOS中的定位-CoreLocation框架
- 面试参考别人总结
- Unity3D的Resource类使用
- Intellij IDEA Debug调试技巧