본문 바로가기

백준1056

백준 2864 5와 6의 차이 1 2 3 4 5 6 a,b=input().split() maxa=a.replace("5","6") maxb=b.replace("5","6") mina=a.replace("6","5") minb=b.replace("6","5") print( (int(mina)+int(minb)),(int(maxa)+int(maxb))) cs 2021. 7. 20.
백준 3029 경고 1 2 3 4 5 6 7 8 9 10 11 12 13 a1,b1,c1=map(int, input().split(":")) a2,b2,c2=map(int, input().split(":")) ans1=a1*3600+b1*60+c1 ans2=a2*3600+b2*60+c2 if ans1>=ans2 : ans2+=3600*24 ans3=ans2-ans1 a3=ans3//3600 ans3%=3600 b3=ans3//60 ans3%=60 c3=ans3 print("%02d:%02d:%02d"%(a3,b3,c3)) cs 2021. 7. 16.
백준 22193 Multiply 1 2 3 4 a,b=map( int, input().split()) c1=int(input()) c2=int(input()) print(c1*c2) cs 2021. 7. 15.
백준 5539 콜센터 1 2 3 4 5 6 7 8 9 10 print(" /~\\") print(" ( oo|") print(" _\=/_") print(" / _ \\") print(" //|/.\|\\\\") print(" || \ / ||") print("============") print("| |") print("| |") print("| |") cs 2021. 7. 15.
백준 21300 1 2 tmp=list(map(int, input().split())) print(sum(tmp)*5) cs 2021. 5. 3.
백준 8437 1 2 3 4 a=int(input()) b=int(input()) print( (a-b)//2+b) print( (a-b)//2) cs 2021. 5. 3.
[백준] 10480 1 2 3 4 for i in range(int(input())): n=int(input()) if n%2==0: print("%d is even"%n) else: print("%d is odd"%n) cs 2021. 3. 19.
[백준] 10262 1 2 3 4 5 6 7 tmp1=list(map(int,input().split())) tmp2=list(map(int,input().split())) a=sum(tmp1) b=sum(tmp2) if a>b : print("Gunnar") elif a==b: print("Tie") else: print("Emma") cs 2021. 3. 19.
[백준] 10214 1 2 3 4 5 6 7 8 for i in range(int(input())): yonsei,korea=0,0 for _ in range(9): a,b=map(int, input().split()) yonsei+=a; korea+=b if yonsei>korea:print("Yonsei") elif yonsei==korea:print("Draw") else: print("Korea") cs 2021. 3. 19.
[백준] 7891 1 2 3 for i in range(int(input())): a,b=map(int,input().split()) print(a+b) cs 2021. 3. 19.
[백준] 7523 1 2 3 4 5 6 n=int(input()) for i in range(n): a, b = map(int, (input().split())) print("Scenario #%d:" % (i + 1)) print( (b-a+1)*(a+b)//2 ) print() cs 2021. 3. 19.
[백준] 8558 1 2 import math print(math.factorial(int(input()))%10) cs 사실 팩토리얼 문제는 시간이 항상 문제인데 시간초과가 나오면 곱하는 과정마다 10을 나눠서 진행을 하려했는데 무난하게 통과가 되네요 2021. 3. 19.