[백준] 2753번 : 윤년 (Python) - 단계별로 풀어보기 Python3코드 year = int(input()) if ((year%4==0)and(year%100!=0)) or (year%400==0): #비교연산자(==같다),(!=같지않다) print ('1') else: print ('0') 백준풀이(Python) 2023.03.23
[백준] 9498번 : 시험 성적 (Python) - 단계별로 풀어보기 Python3코드 score = int(input()) if score >= 90 : print('A') elif score >= 80 : print('B') elif score >= 70 : print('C') elif score >= 60 : print('D') else: print('F') 백준풀이(Python) 2023.03.23
[백준] 1330번 : 두 수 비교하기 (Python) - 단계별로 풀어보기 Python3 코드 A,B = map(int,input().split()) if A > B: print('>') elif A < B: print(' 백준풀이(Python) 2023.03.23
[백준] 10172번 : 개 (Python) - 단계별로 풀어보기 Python3 코드 print("|\_/|") print("|q p| /}") print('( 0 )"""\\') print('|"^"` |') print("||_/=\\\__|") 백준풀이(Python) 2023.03.22
[백준] 10171번 : 고양이 (Python) - 단계별로 풀어보기 Python3 코드 1번째 풀이 print("\\ /\\") print(" ) ( ')") print("( / )") print(" \\(__)|") 2번째 풀이 print("\\ /\\\n ) ( ')\n( / )\n \\(__)|") 백준풀이(Python) 2023.03.22
[백준] 11382번 : 꼬마 정민 (Python) - 단계별로 풀어보기 Python3 코드 a,b,c = map(int, input().split()) print(a+b+c) 백준풀이(Python) 2023.03.22
[백준] 2588번 : 곱셈 (Python) - 단계별로 풀어보기 Python3 코드 a = int(input()) b = input() a1 = a*int(b[2]) a2 = a*int(b[1]) a3 = a*int(b[0]) axb = a*int(b) print(a1,a2,a3,axb,sep='\n') 백준풀이(Python) 2023.03.22
[백준] 10430번 : 나머지 (Python) - 단계별로 풀어보기 Python3 코드 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) 백준풀이(Python) 2023.03.22
[백준] 18108번 : 1998년생인 내가 태국에서는 2541년생?! (Python) - 단계별로 풀어보기 Python3 코드 y = int(input()) print(y-543) 백준풀이(Python) 2023.03.22