#31028: python


goldyeh07 (Alastair1234)

學校 : 臺北市立大安高級工業職業學校
編號 : 194056
來源 : [119.14.51.78]
最後登入時間 :
2023-07-04 13:32:57
b758. 牛仔(ㄗˇ)很忙 | From: [119.14.51.78] | 發表日期 : 2022-07-05 23:33

x,y=map(int,input().split())
if y<30:
    y+=30
    x+=2
    if x>=24:
        x-=24
        print("0",x,":",y,sep="")
    else:
        print(x,":",y,sep="")
elif y==30:
    x+=3
    if x>=24:
        x-=24
        print("0",x,":","00",sep="")
    else:
        print(x,":",y,sep="")
else:
    if y+30>=60:
        x+=3
        y-=30
        if x>=24:
            x-=24
            print("0",x,":",y,sep="")
        else:
            print(x,":",y,sep="")
 
ZeroJudge Forum