結果

問題 No.938 賢人を探せ
ユーザー 0Kate0Kate
提出日時 2019-12-07 00:40:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 13,380 KB
最終ジャッジ日時 2023-08-21 03:35:49
合計ジャッジ時間 2,378 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
13,268 KB
testcase_01 AC 15 ms
7,892 KB
testcase_02 AC 15 ms
7,868 KB
testcase_03 AC 15 ms
7,968 KB
testcase_04 AC 15 ms
7,832 KB
testcase_05 AC 15 ms
7,832 KB
testcase_06 AC 15 ms
7,796 KB
testcase_07 AC 15 ms
7,788 KB
testcase_08 AC 56 ms
10,688 KB
testcase_09 AC 57 ms
10,924 KB
testcase_10 AC 15 ms
7,864 KB
testcase_11 AC 66 ms
13,380 KB
testcase_12 AC 55 ms
10,572 KB
testcase_13 AC 54 ms
10,624 KB
testcase_14 AC 54 ms
10,748 KB
testcase_15 AC 54 ms
10,728 KB
testcase_16 AC 53 ms
10,704 KB
testcase_17 AC 54 ms
10,744 KB
testcase_18 AC 55 ms
10,720 KB
testcase_19 AC 54 ms
10,780 KB
testcase_20 AC 55 ms
10,604 KB
testcase_21 AC 54 ms
10,772 KB
testcase_22 AC 77 ms
13,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

if __name__ == '__main__':
    A = set()
    B = []
    n = int(input())
    for i in range(n):
        a, b = input().split(' ')
        A.add(a)
        B.append(b)

    for b in B:
        if b not in A:
            print(b)
            A.add(b)
0