結果

問題 No.2427 Tree Distance Two
ユーザー tailstails
提出日時 2023-08-18 21:19:20
言語 cLay
(20240104-1)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 2,259 ms
コンパイル使用メモリ 161,788 KB
実行使用メモリ 18,960 KB
最終ジャッジ日時 2023-08-18 21:19:40
合計ジャッジ時間 5,669 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 51 ms
16,648 KB
testcase_04 AC 1 ms
4,384 KB
testcase_05 AC 52 ms
16,616 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 41 ms
18,916 KB
testcase_08 AC 52 ms
18,848 KB
testcase_09 AC 47 ms
18,960 KB
testcase_10 AC 45 ms
18,944 KB
testcase_11 AC 43 ms
18,908 KB
testcase_12 AC 45 ms
17,140 KB
testcase_13 AC 58 ms
17,012 KB
testcase_14 AC 23 ms
16,380 KB
testcase_15 AC 1 ms
4,384 KB
testcase_16 AC 2 ms
4,384 KB
testcase_17 AC 1 ms
4,388 KB
testcase_18 AC 2 ms
4,384 KB
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 2 ms
4,384 KB
testcase_21 AC 3 ms
4,384 KB
testcase_22 AC 1 ms
4,384 KB
testcase_23 AC 1 ms
4,384 KB
testcase_24 AC 3 ms
4,380 KB
testcase_25 AC 10 ms
8,036 KB
testcase_26 AC 25 ms
13,260 KB
testcase_27 AC 17 ms
10,656 KB
testcase_28 AC 44 ms
16,280 KB
testcase_29 AC 34 ms
14,124 KB
testcase_30 AC 24 ms
13,212 KB
testcase_31 AC 15 ms
10,492 KB
testcase_32 AC 23 ms
11,276 KB
testcase_33 AC 20 ms
11,104 KB
testcase_34 AC 8 ms
7,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int@n,u[n],v[];rd((u--,v--)(n-1));
graph g;
g.setEdge(n,n-1,u,v);
rep(i,n){
	ll z=0;
	rep[g.edge[i]](j,g.es[i]){
		z+=g.es[j]-1;
	}
	wt(z);
}
0