結果
| 問題 | No.3576 写像判定 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-03 21:25:52 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 136 ms / 2,000 ms |
| + 927µs | |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 64,768 KB |
| 実行使用メモリ | 95,872 KB |
| 最終ジャッジ日時 | 2026-10-25 14:45:54 |
| 合計ジャッジ時間 | 5,135 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 38 |
ソースコード
from collections import defaultdict
N = int(input())
d = defaultdict(set)
for _ in range(N):
s, t = map(int, input().split())
d[s].add(t)
ans = "Yes"
for key in d:
if len(d[key])>1:
ans = "No"
print(ans)