poj 3619 Speed Reading
来源:互联网 发布:网络语qcQS 编辑:程序博客网 时间:2024/04/30 07:46
#include <iostream>using namespace std;int main(){ int n, k, s, t, r, i, j, ans, tmp, p; while (cin >> n >> k){ for (i = 0; i < k; i++){ cin >> s >> t >> r; tmp = 0; p = 0; ans = 0; while (1){ tmp++; ans++; p += s; if (p < n && tmp == t){ tmp = 0; ans += r; } if (p >= n) break; } cout << ans << endl; } } system("pause"); }
- poj 3619 Speed Reading
- poj 3619 Speed Reading
- poj 3619 Speed Reading
- POJ - 3619-Speed Reading
- POJ 3619 Speed Reading G++
- (Relax ST1.18)POJ 3619 Speed Reading
- POJ 3619 Speed Reading(简单题)
- POJ 3619 Speed Reading(水~)
- FOJ 1542 Speed Reading
- POJ3619-Speed Reading
- How to Improve Speed Reading Skills
- POJ 2017 Speed Limit
- POJ 2017 Speed Limit
- poj 2017 Speed Limit
- POJ 2017 Speed Limit
- poj 2017 Speed Limit
- POJ - Speed Limit
- POJ 2017 - Speed Limit
- Dijkstra算法 ——四人过桥
- web开发方面阅读的经典书籍记录
- C语言中长度为0的数组
- 关于宏定义
- 2440MMU_Init.c 简要分析
- poj 3619 Speed Reading
- usaco Humble Numbers
- 逆向仙剑5
- ORA-01187: cannot read from file because it failed verification tests ORA-01110: data file 201: '/
- sql的limit用法
- android开发流程
- 威佐夫博弈
- HOJ 1456 Team Queue(用queue进行模拟)
- ios常用的代码片段(snippet)