[백준/Python] 10162번 전자레인지

divele·2023년 9월 21일

백준

목록 보기
11/17


정답

time = int(input())
if time%10 > 0:
    print(-1)
else:
    for i in [300,60,10]:
        print(time//i, end=" ")
        time = time % i
profile
https://solved.ac/profile/divele

0개의 댓글