Educational Codeforces Round 7(B)模拟
来源:互联网 发布:大纲写作软件 编辑:程序博客网 时间:2024/05/22 13:22
题意:给你一个时间,过了n分钟后的时间
题解:直接模拟吧
#include<iostream>#include<cstdio>#include<cmath>#define LL long long using namespace std;int main(){#ifdef CDZSCfreopen("i.txt","r",stdin);#endifint h,m,t;char s;cin>>h>>s>>m>>t;m+=t;h+=m/60;m%=60;h%=24;if(h<10)printf("0%d:",h);else printf("%d:",h);if(m<10)printf("0%d\n",m);else printf("%d\n",m);return 0;}
0 0
- Educational Codeforces Round 7(B)模拟
- Educational Codeforces Round 6 (B)模拟
- Educational Codeforces Round 11(B)模拟
- Educational Codeforces Round 7-B. The Time(模拟)
- Codeforces - Educational Codeforces Round 14B - s-palindrome(模拟)
- Educational Codeforces Round 12(B)暴力模拟
- Educational Codeforces Round 32 B. Buggy Robot(模拟)
- Educational Codeforces Round 10(A)模拟
- Educational Codeforces Round 7--B. The Time
- Educational Codeforces Round 7 B. The Time
- Educational Codeforces Round 1(B)
- Educational Codeforces Round 5(B)贪心
- Educational Codeforces Round 30(A+B)
- Educational Codeforces Round 1 B.Queries on a String(模拟)
- Educational Codeforces Round 6 B. Grandfather Dovlet’s calculator(模拟)
- Educational Codeforces Round 6-B. Grandfather Dovlet’s calculator(简单模拟)
- Educational Codeforces Round 27 B. Luba And The Ticket(模拟)
- Educational Codeforces Round 5 B
- apache commons io 2.2(四)Input部分
- Educational Codeforces Round 7(A)数学
- 书常有,而好书不常有
- 从头认识Spring-2.1 自动装配(2)-byType(2)
- UITableView细节.txt
- Educational Codeforces Round 7(B)模拟
- 深度学习与计算机视觉系列(10)_细说卷积神经网络
- URL和URI的区别
- Educational Codeforces Round 7(C)线段树
- BNUOJ 51277 魔方复原(模拟、置换)
- Redis的Java客户端Jedis的八种调用方式(事务、管道、分布式)介绍
- nyoj891找点
- AppRTCDemo 运行测试
- HDU 5250 三阶魔方(模拟、置换)