結果

問題 No.938 賢人を探せ
ユーザー nep_pudding3nep_pudding3
提出日時 2019-12-02 00:17:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 11,576 KB
最終ジャッジ日時 2023-08-21 03:31:55
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
11,544 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 15 ms
7,872 KB
testcase_03 AC 15 ms
7,752 KB
testcase_04 AC 15 ms
7,792 KB
testcase_05 AC 15 ms
7,760 KB
testcase_06 AC 15 ms
7,856 KB
testcase_07 AC 15 ms
7,760 KB
testcase_08 AC 56 ms
9,600 KB
testcase_09 AC 57 ms
9,620 KB
testcase_10 AC 15 ms
7,756 KB
testcase_11 AC 63 ms
9,796 KB
testcase_12 AC 55 ms
9,508 KB
testcase_13 AC 56 ms
9,564 KB
testcase_14 AC 55 ms
9,604 KB
testcase_15 AC 55 ms
9,700 KB
testcase_16 AC 55 ms
9,480 KB
testcase_17 AC 56 ms
9,656 KB
testcase_18 AC 55 ms
9,536 KB
testcase_19 AC 55 ms
9,516 KB
testcase_20 AC 55 ms
9,544 KB
testcase_21 AC 56 ms
9,624 KB
testcase_22 AC 81 ms
11,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
student = {}
for i in range(N):
    a,b = input().split()
    student[a] = 0
    if student.get(b) == None:
        student[b] = 1
for a,b in student.items():
    if b :
        print(a)
0