結果
| 問題 |
No.938 賢人を探せ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-26 10:28:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 241 bytes |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 26,560 KB |
| 最終ジャッジ日時 | 2025-01-26 10:29:06 |
| 合計ジャッジ時間 | 32,735 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 TLE * 4 |
ソースコード
n = int(input())
s1 = set()
s2 = set()
name_b = []
for i in range(n):
a, b = input().split()
s1.add(a)
s2.add(b)
if b not in name_b:
name_b.append(b)
ans = s2 - s1
for n in name_b:
if n in ans:
print(n)