文章
55
粉丝
100
获赞
12
访问
32.9k
#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
int h,m;
int n;
cin>>n;
for(int i = 0; i<n; i++){
int hour = 13;
int minute = 15;
scanf("%d:%d",&h,&m);
int ah,am;
ah = hour+h;
if(ah>=24){
ah -= 24;
}
am = minute+m;
if(am>=60){
am-=60;
ah+=1;
}
printf("%d:%d\n",ah,am);
}
}
登录后发布评论
暂无评论,来抢沙发