백준2357 [백준/파이썬] 31617번 差 (Difference) -Code k = int(input()) input() a_list = list(map(int, input().split())) input() b_list = list(map(int, input().split())) res = 0 for a in a_list: if a + k in b_list: res += b_list.count(a + k) print(res) 2024. 3. 28. [백준/파이썬] 29308번 Закат -code res, max_pay = "", 0 for _ in range(int(input())): pay, name, country = input().split() if max_pay < int(pay) and country == "Russia": max_pay = int(pay) res = name print(res) 2024. 3. 27. [백준/파이썬] 31656번 Sticky Keys -Code s = input() res, temp = "", "" for w in s: if temp != w: temp = w res += w print(res) 2024. 3. 26. [백준/파이썬] 31636번 三連続 (Three Consecutive) -Code input() print("Yes" if "ooo" in input() else "No") 2024. 3. 25. [백준/파이썬] 31616번 揃った文字 (Matched Letters) -Code input() print("Yes" if len(set(input())) == 1 else "No") 2024. 3. 24. [백준/파이썬] 31609번 現れている数字 (Appearing Numbers) -Code input() nums = sorted(set(list(map(int, input().split())))) for n in list(nums): print(n) 2024. 3. 23. 이전 1 ··· 52 53 54 55 56 57 58 ··· 393 다음