BOJ 2884

녹색자몽·2021년 9월 4일
0

Algorithm

목록 보기
53/80
post-thumbnail

알람 시계

x,y = map(int,input().split())
if x == 0:
    
    if y < 45:
        x = 23
        z = 60+y-45
        print(f'{x} {z}')
    else:
        print(f'{x} {y-45}')
elif x > 0:
    if y < 45:
        z = 60+y-45
        print(f'{x-1} {z}')
    else:
        print(f'{x} {y-45}')
    
         



    

profile
볕 좋은 날 시작하는 개발일기

0개의 댓글

관련 채용 정보