結果

問題 No.938 賢人を探せ
ユーザー caleicalei
提出日時 2020-01-06 22:13:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 17,828 KB
最終ジャッジ日時 2023-08-21 03:42:53
合計ジャッジ時間 2,504 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
17,660 KB
testcase_01 AC 15 ms
7,828 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 15 ms
7,912 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 15 ms
7,820 KB
testcase_07 AC 15 ms
7,824 KB
testcase_08 AC 55 ms
11,780 KB
testcase_09 AC 58 ms
11,920 KB
testcase_10 AC 16 ms
7,796 KB
testcase_11 AC 67 ms
15,440 KB
testcase_12 AC 54 ms
11,592 KB
testcase_13 AC 55 ms
11,576 KB
testcase_14 AC 54 ms
11,644 KB
testcase_15 AC 54 ms
11,524 KB
testcase_16 AC 54 ms
11,652 KB
testcase_17 AC 55 ms
11,584 KB
testcase_18 AC 54 ms
11,580 KB
testcase_19 AC 54 ms
11,628 KB
testcase_20 AC 54 ms
11,616 KB
testcase_21 AC 54 ms
11,604 KB
testcase_22 AC 81 ms
17,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 2020/01/06

n=int(input())
aa=[]
bb=[]
for i in range(n):
    a,b=input().split()
    aa.append(a)
    bb.append(b)

res=set(bb)-set(aa)

for b in bb:
    if b in res:
        print(b)
        res.remove(b)
0