結果
| 問題 | No.2800 Game on Tree Inverse |
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2024-06-26 23:45:46 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 460 bytes |
| 記録 | |
| コンパイル時間 | 5,447 ms |
| コンパイル使用メモリ | 337,500 KB |
| 実行使用メモリ | 22,564 KB |
| 最終ジャッジ日時 | 2026-07-05 02:00:22 |
| 合計ジャッジ時間 | 14,689 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 64 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/dsu>
#include "testlib.h"
using namespace std;
using ll = long long;
const ll MIN_N = 2;
const ll MAX_N = 200'000;
int main(){
registerValidation();
ll N = inf.readLong(MIN_N, MAX_N);
inf.readEoln();
atcoder::dsu UF(N);
for (int i=0; i<N-1; i++){
ll U = inf.readLong(1LL, N);
inf.readSpace();
ll V = inf.readLong(1LL, N);
inf.readEoln();
UF.merge(U, V);
}
assert(UF.size(0) == N);
inf.readEof();
}
shobonvip