結果
問題 | No.938 賢人を探せ |
ユーザー | popketle |
提出日時 | 2020-01-14 12:36:25 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 10,696 KB |
実行使用メモリ | 20,388 KB |
最終ジャッジ日時 | 2023-08-26 02:41:17 |
合計ジャッジ時間 | 3,164 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 97 ms
20,316 KB |
testcase_01 | WA | - |
testcase_02 | AC | 15 ms
7,848 KB |
testcase_03 | WA | - |
testcase_04 | AC | 15 ms
7,828 KB |
testcase_05 | AC | 15 ms
7,816 KB |
testcase_06 | AC | 15 ms
7,788 KB |
testcase_07 | AC | 15 ms
7,784 KB |
testcase_08 | AC | 68 ms
13,884 KB |
testcase_09 | AC | 75 ms
14,236 KB |
testcase_10 | AC | 15 ms
7,976 KB |
testcase_11 | AC | 83 ms
18,376 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
20,388 KB |
ソースコード
n=int(input()) AB=[list(map(str,input().split())) for _ in range(n)] cheater,person=[],[] for a,b in AB: cheater.append(a) person.append(b) nocheater=set(person)-set(cheater) # nocheater=sorted(set(nocheater),key=person.index) # print(*nocheater,sep="\n") for p in person: if p in nocheater: print(p)