結果
| 問題 | No.9017 ac-library 動作確認 |
| ユーザー |
kidodesu
|
| 提出日時 | 2026-09-12 17:14:03 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 234 ms / 5,000 ms |
| + 802µs | |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 104,064 KB |
| 最終ジャッジ日時 | 2026-09-12 17:14:07 |
| 合計ジャッジ時間 | 2,345 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
from atcoder.dsu import DSU n, m = list(map(int, input().split())) uf = DSU(n) for _ in range(m): u, v = list(map(int, input().split())) uf.merge(u, v) print(len(uf.groups()))
kidodesu