브론즈318 백준-10886번(0 = not cute / 1 = cute)-python3 a=0 b=0 for x in range(int(input())): if input()=='1': a+=1 else: b+=1 print('Junhee is cute!' if a>b else 'Junhee is not cute!') 2023. 11. 30. 백준-10817번(세 수)-python3 a=list(map(int,input().split())) b=sorted(a) print(b[1]) 2023. 11. 30. 백준-10250번(ACM 호텔)-python3 import math i=int(input()) for x in range(i): h,w,n=map(int,input().split()) b=str(math.ceil(n/h)) a=n-(h*(math.ceil(n/h)-1)) zero_b=b.zfill(2) print('%s%s'%(a,zero_b)) 2023. 11. 30. 백준-10214번(Baseball)-python3 for i in range(int(input())): a = 0 b = 0 for x in range(9): m, n = map(int, input().split()) a += m b += n if a > b: print('Yonsei') elif a < b: print('Korea') else: print('Draw') 2023. 11. 30. 백준-10162번(전자레인지)-python3 i=int(input()) a=300 b=60 c=10 if i%10!=0: print(-1) else: print(i//a,end=' ') print((i%a)//b,end=' ') print((i%b)//c) 2023. 11. 30. 백준-10103번(주사위 게임)-python3 dic={'a':100,'b':100} for x in range(int(input())): m,n=map(int,input().split()) if m>n: dic['b']-=m elif m 2023. 11. 30. 이전 1 2 3 다음