파이썬2187 [백준/파이썬] 18154번 Speeding -Coden = int(input())picture = [list(map(int, input().split())) for _ in range(n)]res = 0for i in range(1, n): res = max( res, (picture[i][1] - picture[i - 1][1]) // (picture[i][0] - picture[i - 1][0]) )print(res) 2024. 11. 28. [백준/파이썬] 22113번 창영이와 버스 -Coden, m = map(int, input().split())bus = list(map(int, input().split()))total_cost = [list(map(int, input().split())) for _ in range(n)]res = 0for i in range(m - 1): res += total_cost[bus[i] - 1][bus[i + 1] - 1]print(res) 2024. 11. 27. [백준/파이썬] 32710번 구구단표 -Coden = int(input())for i in range(2, 10): for j in range(1, 10): if n == i or n == j or n == i * j: print(1) exit()print(0) 2024. 11. 26. [백준/파이썬] 32364번 Hat Circle -Codefrom sys import stdininput = stdin.readlinen = int(input())hat = [int(input()) for _ in range(n)]res = 0for i in range(n): if hat[i] == hat[(n // 2 + i) % n]: res += 1print(res) 2024. 11. 25. [백준/파이썬] 32795번 Intuitive Elements -Codefor _ in range(int(input())): a = input() b = input() flag = True for w in b: if w not in a: flag = False break print("YES" if flag else "NO") 2024. 11. 24. [백준/파이썬] 32728번 Sõnakuulelik Tom -Codedef sol(arr, cnt, now, c): if len(res[now]) 2024. 11. 23. 이전 1 ··· 10 11 12 13 14 15 16 ··· 365 다음