結果

問題 No.1484 木に数を書き込む問題 / Just Write Numbers! 2
ユーザー tailstails
提出日時 2021-04-19 21:37:27
言語 cLay
(20240104-1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 123 bytes
コンパイル時間 2,655 ms
コンパイル使用メモリ 174,620 KB
実行使用メモリ 15,116 KB
最終ジャッジ日時 2023-09-19 02:22:46
合計ジャッジ時間 7,290 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 3 ms
4,376 KB
testcase_06 AC 4 ms
4,408 KB
testcase_07 AC 3 ms
4,376 KB
testcase_08 AC 4 ms
4,488 KB
testcase_09 AC 4 ms
4,488 KB
testcase_10 AC 3 ms
4,380 KB
testcase_11 AC 3 ms
4,384 KB
testcase_12 AC 3 ms
4,380 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 24 ms
12,228 KB
testcase_15 AC 21 ms
12,340 KB
testcase_16 AC 20 ms
10,192 KB
testcase_17 AC 15 ms
9,936 KB
testcase_18 AC 25 ms
12,760 KB
testcase_19 AC 31 ms
14,808 KB
testcase_20 AC 30 ms
14,916 KB
testcase_21 AC 31 ms
14,856 KB
testcase_22 AC 31 ms
14,920 KB
testcase_23 AC 31 ms
14,816 KB
testcase_24 AC 31 ms
15,116 KB
testcase_25 AC 33 ms
14,808 KB
testcase_26 AC 32 ms
14,856 KB
testcase_27 AC 35 ms
14,956 KB
testcase_28 AC 32 ms
14,884 KB
testcase_29 AC 17 ms
12,904 KB
testcase_30 AC 16 ms
12,872 KB
testcase_31 AC 14 ms
14,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	int@n;--n;
	VI a(n),b(n);
	rd((a--,b--)(n));
	graph g;
	g.setEdge(n+1,n,a.data(),b.data());
	wt(2n-g.TreeDiameter());
}
0