結果

問題 No.938 賢人を探せ
ユーザー caleicalei
提出日時 2020-01-06 22:11:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 19,916 KB
最終ジャッジ日時 2024-05-02 10:57:01
合計ジャッジ時間 2,232 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
19,852 KB
testcase_01 WA -
testcase_02 AC 25 ms
10,880 KB
testcase_03 WA -
testcase_04 AC 25 ms
10,624 KB
testcase_05 AC 26 ms
10,496 KB
testcase_06 AC 26 ms
10,752 KB
testcase_07 AC 26 ms
10,624 KB
testcase_08 AC 67 ms
13,824 KB
testcase_09 AC 70 ms
13,696 KB
testcase_10 AC 31 ms
10,624 KB
testcase_11 AC 78 ms
17,516 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 98 ms
19,916 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)
0