백준 3273 (1) 썸네일형 리스트형 [ BOJ / 파이썬 ] 3273 두 수의 합 / 제출 1 / 처음에 인풋 값 저렇게 큰 줄 모르고 n^2으로 해서 시간 초과 import sys input = sys.stdin.readline n = int(input()) nums = list(map(int, input().split())) x = int(input()) sub_nums = list(map(lambda i: abs(i-x), nums)) count = 0 for sub_num in sub_nums: if sub_num in nums: count += 1 print(count//2) / 제출 2 / https://baby-ohgu.tistory.com/12 [백준 3273] 두 수의 합 (Python) www.acmicpc.net/problem/3273 3273번: 두 수의 합 n개.. 이전 1 다음