結果
| 問題 | No.1769 Don't Stop the Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-21 14:00:16 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 561 bytes |
| 記録 | |
| コンパイル時間 | 5,785 ms |
| コンパイル使用メモリ | 337,668 KB |
| 実行使用メモリ | 38,696 KB |
| 最終ジャッジ日時 | 2026-06-23 10:06:38 |
| 合計ジャッジ時間 | 9,186 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 28 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/dsu>
using namespace std;
using namespace atcoder;
#define rep(i,n) for(int i=0;i<n;++i)
#include "testlib.h"
int main() {
registerValidation();
int n = inf.readInt(2,200000);
inf.readEoln();
dsu uf(n);
rep(i,n-1) {
int a = inf.readInt(1,n-1)-1;
inf.readSpace();
int b = inf.readInt(a+1,n)-1;
inf.readSpace();
int c = inf.readInt(0,(1<<30)-1);
inf.readEoln();
uf.merge(a,b);
}
inf.readEof();
assert(uf.size(0)==n);
return 0;
}