[2884] 알람시계 H, M = map(int, input().split()) if(M- 45 >= 0) : print(H,M-45) else: if H == 0 : print(23,M-45+60) else: print(H-1,M-45+60) 코딩 테스트 준비하기/백준 - 조건문 2023.06.28
[14681] 사분면 고르기 X = int(input()) Y = int(input()) x = '+' if X > 0 else '-' y = '+' if Y > 0 else '-' if (x=='+' and y=='+') : print("1") elif (x=='+' and y=='-') : print("4") elif (x=='-' and y=='+') : print("2") elif (x=='-' and y=='-') : print("3") 코딩 테스트 준비하기/백준 - 조건문 2023.06.28
[2753] 윤년 year = int(input()) if((year % 4 == 0 and year % 100 != 0)or(year % 4 == 0 and year % 400 == 0)) : print(1) else: print(0) 코딩 테스트 준비하기/백준 - 조건문 2023.06.28
[9498] 시험 성적 score = int(input()) if score >= 90 and score = 80 and score = 70 and score = 60 and score 코딩 테스트 준비하기/백준 - 조건문 2023.06.28
[1330] 두 수 비교하기 A, B = map(int, input().split()) end = '>' if A>B else ' 코딩 테스트 준비하기/백준 - 조건문 2023.06.28
[10172] 개 print('''|\\_/| |q p| /} ( 0 )\"\"\"\\ |\"^\"` | ||_/=\\\\__| ''') 코딩 테스트 준비하기/백준 - 입출력 2023.06.27
[2588] 곱셈 A = int(input()) B = input() print(A*int(B[2])) print(A*int(B[1])) print(A*int(B[0])) print(A*int(B)) 코딩 테스트 준비하기/백준 - 입출력 2023.06.27
[10430] 나머지 A, B, C = map(int, input().split()) print((A+B)%C) print(((A%C)+(B%C))%C) print((A*B)%C) print(((A%C)*(B%C))%C) 코딩 테스트 준비하기/백준 - 입출력 2023.06.27