結果
| 問題 | No.938 賢人を探せ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-26 10:28:31 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 436 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 22,976 KB |
| 最終ジャッジ日時 | 2026-06-24 16:12:30 |
| 合計ジャッジ時間 | 12,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 TLE * 3 |
ソースコード
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)