반응형

문제 설명

https://www.acmicpc.net/problem/2557

 
 

 

 

제출한 코드

print("Hello World!")

 

 

 

 

결과

 

 

 

후기

 

 

 

 

 

 
반응형
반응형

문제 설명

https://www.acmicpc.net/problem/2530

 
 

 

 

제출한 코드

time = list(map(int, input().split()))
sec = int(input())

time[2] += sec

if time[2] >= 60 :
    a = time[2]//60
    time[2] = time[2]%60
    time[1] += +a
if time[1] >= 60 :
    a = time[1]//60
    time[1] = time[1]%60
    time[0] += a
if time[0] >= 24 :
    time[0] = time[0]%24

for i in range(3) :
    print(time[i], end=' ')

 

 

 

 

결과

 

 

 

후기

 

 

 

 

 

 
반응형
반응형

문제 설명

https://www.acmicpc.net/problem/2525

 
 

 

 

제출한 코드

a,b=input().split()
a=int(a)
b=int(b)

c =int(input())

d=b+c
while d>59 :
    if d>59 :
        if a==23:
            a=0
            d-=60
        else:
            a+=1
            d-=60

print(a,d)

 

 

 

 

결과

 

 

 

후기

 

 

 

 

 

 
반응형

+ Recent posts