結果

問題 No.938 賢人を探せ
ユーザー kimura512kimura512
提出日時 2019-12-11 12:39:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 387 bytes
コンパイル時間 2,115 ms
コンパイル使用メモリ 86,732 KB
実行使用メモリ 82,628 KB
最終ジャッジ日時 2023-08-21 03:37:14
合計ジャッジ時間 5,936 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
82,280 KB
testcase_01 AC 114 ms
73,348 KB
testcase_02 AC 112 ms
73,408 KB
testcase_03 AC 115 ms
73,068 KB
testcase_04 AC 115 ms
73,392 KB
testcase_05 AC 116 ms
73,288 KB
testcase_06 AC 115 ms
73,104 KB
testcase_07 AC 116 ms
73,452 KB
testcase_08 AC 129 ms
80,708 KB
testcase_09 AC 130 ms
80,516 KB
testcase_10 AC 110 ms
72,996 KB
testcase_11 AC 136 ms
81,576 KB
testcase_12 AC 142 ms
80,920 KB
testcase_13 AC 143 ms
80,860 KB
testcase_14 AC 146 ms
80,864 KB
testcase_15 AC 143 ms
80,672 KB
testcase_16 AC 142 ms
81,020 KB
testcase_17 AC 142 ms
80,860 KB
testcase_18 AC 141 ms
80,808 KB
testcase_19 AC 138 ms
80,676 KB
testcase_20 AC 141 ms
80,720 KB
testcase_21 AC 141 ms
80,512 KB
testcase_22 AC 145 ms
82,628 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