結果
問題 | No.938 賢人を探せ |
ユーザー | buriburi |
提出日時 | 2019-12-03 12:55:04 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 84 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 10,676 KB |
実行使用メモリ | 11,692 KB |
最終ジャッジ日時 | 2023-08-21 03:33:21 |
合計ジャッジ時間 | 2,271 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
11,568 KB |
testcase_01 | AC | 15 ms
7,856 KB |
testcase_02 | AC | 15 ms
7,880 KB |
testcase_03 | AC | 15 ms
7,800 KB |
testcase_04 | AC | 15 ms
7,932 KB |
testcase_05 | AC | 16 ms
7,796 KB |
testcase_06 | AC | 15 ms
7,968 KB |
testcase_07 | AC | 16 ms
7,768 KB |
testcase_08 | AC | 60 ms
9,636 KB |
testcase_09 | AC | 61 ms
9,576 KB |
testcase_10 | AC | 15 ms
7,720 KB |
testcase_11 | AC | 68 ms
9,824 KB |
testcase_12 | AC | 59 ms
9,696 KB |
testcase_13 | AC | 58 ms
9,552 KB |
testcase_14 | AC | 59 ms
9,544 KB |
testcase_15 | AC | 58 ms
9,484 KB |
testcase_16 | AC | 59 ms
9,668 KB |
testcase_17 | AC | 58 ms
9,632 KB |
testcase_18 | AC | 58 ms
9,632 KB |
testcase_19 | AC | 58 ms
9,536 KB |
testcase_20 | AC | 58 ms
9,568 KB |
testcase_21 | AC | 59 ms
9,704 KB |
testcase_22 | AC | 81 ms
11,692 KB |
ソースコード
students = {} num = int(input()) for k in range(num): line = input().split() cheater = line[0] writer = line[1] if not cheater in students: students[cheater] = True else: students[cheater] = True if not writer in students: students[writer] = False for key, value in students.items(): if not value: print(key)