新手村 洛谷的第一个任务 小鱼的游泳时间
2017-10-28 19:38
399 查看
第一个任务还是很好写的。至于我为什么从头开始写呢。。因为我之前是用的USACO,切到第3章的时候写不下去了,看到这个里面把USACO放在了试炼场里面,于是想干脆直接拿洛谷的试炼场来写吧。。。
#include <cstring> #include <iostream> #include <cmath> #include <stdio.h> #include <stdlib.h> #include <string> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int time = c * 60 + d - a * 60 - b; cout << time / 60 << " " << time % 60 << endl; return 0; }
相关文章推荐
- 洛谷-小鱼的游泳时间-洛谷的第一个任务
- 新手村 洛谷的第一个任务 A+B problem
- 新手村 洛谷的第一个任务 小玉买文具
- 洛谷1425 小鱼的游泳时间
- 洛谷P1425 小鱼的游泳时间
- 【洛谷P1425 小鱼的游泳时间--100分】
- 小鱼的游泳时间-洛谷 1425
- 新手村之洛谷的第一个任务
- 新手村 洛谷的第一个任务 超级玛丽游戏
- 洛谷-小玉买文具-洛谷的第一个任务
- luogu1425 小鱼的游泳时间
- 小鱼的游泳时间
- 小鱼的游泳时间
- 小鱼的游泳时间
- P1425 小鱼的游泳时间
- 小鱼的游泳时间
- 小鱼的游泳时间
- 小鱼的游泳时间
- P1425 小鱼的游泳时间(#1 - 1)
- 【模拟】P1425 小鱼的游泳时间