省一等,保研。

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm> using namespace std; int H,M,S,h,m,s; int main(){
int T;
bool flag1,flag2;
scanf("%d",&T);
while(T--){
flag1=flag2=false;
scanf("%d:%d:%d %d:%d:%d",&H,&M,&S,&h,&m,&s);
if(S<s){
flag1=true;
S+=;
}
S-=s;
if(flag1)
M--;
if(M<m){
flag2=true;
M+=;
}
M-=m;
if(flag2)
H--;
H-=h;
H%=;
H=(H+)%;
printf("%02d:%02d:%02d\n",H,M,S);
}
return ;
}

最新文章

  1. AT Tool --- android手机发送at指令
  2. 循序渐进Python3(十二) --2-- &#160;web框架之django简单实现oracle数据库操作
  3. asp.net webform中使用async,await实现异步操作
  4. 【转】【WPF】资源读取 URI
  5. final关键字+const关键字
  6. apache&amp;nginx资料汇总
  7. C#扫盲之:带你掌握C#的扩展方法、以及探讨扩展方法的本质、注意事项
  8. statspack系列5
  9. java大全经典的书面采访
  10. APP热更新方案
  11. 基于NIOS-II的示波器:PART3 初步功能实现
  12. Oracle中 in、exists、not in,not exists的比较
  13. ansible 拷贝文件并重启服务
  14. 使用ASIFormDataRequest完成用户的登录操作
  15. MySQL存储过程(PROCEDURE)(一)
  16. 复杂链表的复制(Hard)
  17. wx-charts 微信小程序图表 -- radarChart C# .net .ashx 测试
  18. SqlServer存储过程输出参数
  19. VC中链接错误,提示string重定义
  20. Linux内存初始化(三) 内存布局

热门文章

  1. 杂项-TMod:常见错误
  2. Android开发中的日期格式化
  3. S - New Year Transportation
  4. File入门及路径名问题
  5. [转载]cocos2d-触摸分发原理
  6. java的封箱和拆箱
  7. Vim入门基础知识集锦
  8. 招银网络面试题、考点、知识点总结(Java岗)
  9. Day 19 numpy 模块
  10. scrapy-redis使redis不止保存url