結果
問題 | No.938 賢人を探せ |
ユーザー | kimura512 |
提出日時 | 2019-12-11 12:39:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 89 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 520 ms |
コンパイル使用メモリ | 82,100 KB |
実行使用メモリ | 80,344 KB |
最終ジャッジ日時 | 2024-12-14 11:51:09 |
合計ジャッジ時間 | 3,047 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
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)