-
컴공생의 공부 일기
-
공부보단 일기에 가까운 것 같은
-
블로그
22.08.13 백준풀기
from sys import stdin N ,X = map (int, stdin.readline().split()) Nlist = list(map(int,stdin.readline().split())) for cha in Nlist: if cha < X : print(cha, end=" ") 리스트에다 쫙 넣고 싶으면 list(map(int,input()))~ from sys import stdin while(1): A, B = map (int, stdin.readline().split()) if A==B==0 : break print(A+B) 예외 처리 try,except( else, finally) https://blockdmask.tistory.com/537 [python] 파이썬 예외처리 try,..
2022. 8. 13.
22.08.11 백준풀기
from sys import stdin A, B = map(int, stdin.readline().split()) # map() 쓸 때 split() 까먹지 말기 C = int(stdin.readline()) B += C if (B) // 60 > 0 : PH = (B) // 60 A += PH B = B%60 if A // 24 >= 1: A = A%24 print( A ,B ,end=" ") from sys import stdin A, B, C = map(int, stdin.readline().split()) if A == B and B ==C: #10,000원+(같은 눈)×1,000원 result = 10000 + (A)*1000 elif A ==B :#1,000원+(같..
2022. 8. 11.