목록BOJ_백준 (123)
haju__log
https://www.acmicpc.net/problem/11382 11382번: 꼬마 정민 첫 번째 줄에 A, B, C (1 ≤ A, B, C ≤ 1012)이 공백을 사이에 두고 주어진다. www.acmicpc.net a,b,c=map(int, input().split()) print(a+b+c)
https://www.acmicpc.net/problem/2480 2480번: 주사위 세개 1에서부터 6까지의 눈을 가진 3개의 주사위를 던져서 다음과 같은 규칙에 따라 상금을 받는 게임이 있다. 같은 눈이 3개가 나오면 10,000원+(같은 눈)×1,000원의 상금을 받게 된다. 같은 눈이 2개 www.acmicpc.net a,b,c = map(int,input().split()) if a==b and b==c: result = 10000+a*1000 elif (a==b and b!=c) or (a==c and a!=b) : result = 1000+a*100 elif (b==c and a!=b): result = 1000+b*100 else : result = max(a,b,c) result *=10..
https://www.acmicpc.net/problem/14681 14681번: 사분면 고르기 점 (x, y)의 사분면 번호(1, 2, 3, 4 중 하나)를 출력한다. www.acmicpc.net x= int(input()) y= int(input()) if x>0: if y>0 : print(1) else : print(4) else : if y>0: print(2) else : print(3)
https://www.acmicpc.net/problem/2884 2884번: 알람 시계 상근이는 매일 아침 알람을 듣고 일어난다. 알람을 듣고 바로 일어나면 다행이겠지만, 항상 조금만 더 자려는 마음 때문에 매일 학교를 지각하고 있다. 상근이는 모든 방법을 동원해보았지만, www.acmicpc.net H,M = input().split() H=int(H) M=int(M) cal = 60*H+M cal -=45 M=cal%60 H=cal//60 if H==-1: H+=24 print(H,M)