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