結果

問題 No.1390 Get together
ユーザー tailstails
提出日時 2021-02-12 21:31:28
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 2,315 ms
コンパイル使用メモリ 161,492 KB
実行使用メモリ 9,220 KB
最終ジャッジ日時 2023-09-19 02:11:08
合計ジャッジ時間 5,423 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,568 KB
testcase_01 AC 2 ms
7,376 KB
testcase_02 AC 3 ms
7,372 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 3 ms
7,428 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 3 ms
7,492 KB
testcase_14 AC 2 ms
7,372 KB
testcase_15 AC 3 ms
7,388 KB
testcase_16 AC 12 ms
8,164 KB
testcase_17 AC 12 ms
9,220 KB
testcase_18 AC 11 ms
8,120 KB
testcase_19 AC 17 ms
8,920 KB
testcase_20 AC 17 ms
8,900 KB
testcase_21 AC 17 ms
9,152 KB
testcase_22 AC 17 ms
8,916 KB
testcase_23 AC 16 ms
8,884 KB
testcase_24 AC 17 ms
8,924 KB
testcase_25 AC 16 ms
8,924 KB
testcase_26 AC 17 ms
9,080 KB
testcase_27 AC 17 ms
8,892 KB
testcase_28 AC 17 ms
9,128 KB
testcase_29 AC 17 ms
8,868 KB
testcase_30 AC 18 ms
8,904 KB
testcase_31 AC 17 ms
8,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

unionFind u;

int d[3d5];

{
	int @n,@m;
	int z=0;
	u.walloc(n+1,1);
	rep(n){
		int @b,@c;
		if(d[c]==0){
			d[c]=b;
		}else{
			z+=u(d[c],b);
		}
	}
	wt(z);
}
0