結果

問題 No.938 賢人を探せ
ユーザー kimura512kimura512
提出日時 2019-12-11 12:39:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 387 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 80,128 KB
最終ジャッジ日時 2024-05-08 09:04:40
合計ジャッジ時間 2,786 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
80,028 KB
testcase_01 AC 46 ms
55,424 KB
testcase_02 AC 49 ms
55,424 KB
testcase_03 AC 48 ms
55,296 KB
testcase_04 AC 48 ms
55,552 KB
testcase_05 AC 47 ms
55,168 KB
testcase_06 AC 46 ms
55,368 KB
testcase_07 AC 53 ms
55,424 KB
testcase_08 AC 69 ms
73,728 KB
testcase_09 AC 70 ms
74,240 KB
testcase_10 AC 46 ms
55,424 KB
testcase_11 AC 80 ms
78,848 KB
testcase_12 AC 82 ms
78,336 KB
testcase_13 AC 84 ms
78,464 KB
testcase_14 AC 83 ms
78,396 KB
testcase_15 AC 84 ms
78,336 KB
testcase_16 AC 86 ms
78,408 KB
testcase_17 AC 85 ms
78,208 KB
testcase_18 AC 86 ms
78,592 KB
testcase_19 AC 85 ms
78,336 KB
testcase_20 AC 85 ms
78,208 KB
testcase_21 AC 87 ms
78,412 KB
testcase_22 AC 90 ms
80,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

N = I()
set_a = set()
set_b = set()
for i in range(N):
    a,b = Ss()
    set_a.add(a)
    set_b.add(b)
for e in list(set_b - set_a):
    print(e)
0