結果

問題 No.1170 Never Want to Walk
ユーザー tailstails
提出日時 2020-08-14 21:51:43
言語 cLay
(20240104-1)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 2,416 ms
コンパイル使用メモリ 161,340 KB
実行使用メモリ 11,952 KB
最終ジャッジ日時 2023-09-19 01:00:53
合計ジャッジ時間 7,888 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
9,696 KB
testcase_01 AC 3 ms
9,484 KB
testcase_02 AC 3 ms
9,484 KB
testcase_03 AC 2 ms
9,448 KB
testcase_04 AC 2 ms
9,488 KB
testcase_05 AC 3 ms
9,484 KB
testcase_06 AC 2 ms
9,492 KB
testcase_07 AC 3 ms
9,444 KB
testcase_08 AC 3 ms
9,548 KB
testcase_09 AC 3 ms
9,484 KB
testcase_10 AC 2 ms
9,468 KB
testcase_11 AC 3 ms
9,440 KB
testcase_12 AC 2 ms
9,572 KB
testcase_13 AC 2 ms
9,500 KB
testcase_14 AC 3 ms
9,652 KB
testcase_15 AC 3 ms
9,500 KB
testcase_16 AC 2 ms
9,488 KB
testcase_17 AC 3 ms
9,496 KB
testcase_18 AC 3 ms
9,640 KB
testcase_19 AC 3 ms
9,524 KB
testcase_20 AC 3 ms
9,460 KB
testcase_21 AC 2 ms
9,500 KB
testcase_22 AC 3 ms
9,452 KB
testcase_23 AC 3 ms
9,516 KB
testcase_24 AC 3 ms
9,468 KB
testcase_25 AC 2 ms
9,488 KB
testcase_26 AC 3 ms
9,488 KB
testcase_27 AC 16 ms
10,908 KB
testcase_28 AC 16 ms
10,812 KB
testcase_29 AC 16 ms
11,952 KB
testcase_30 AC 15 ms
10,984 KB
testcase_31 AC 15 ms
11,016 KB
testcase_32 AC 17 ms
10,588 KB
testcase_33 AC 17 ms
10,576 KB
testcase_34 AC 16 ms
10,592 KB
testcase_35 AC 17 ms
10,576 KB
testcase_36 AC 16 ms
10,588 KB
testcase_37 AC 17 ms
10,592 KB
testcase_38 AC 17 ms
10,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,a,b,j,x[2d5],c[2d5];
unionFind u;
{
	rd(n,a,b,x(n));
	u.walloc(n,1);
	rep(i,n){
		while(x[i]-x[j]>b)++j;
		while(x[i]-x[j]>=a)u(j,i),++j;
		if(j)--j;
	}
	rep(i,n){
		c[u.get(i)]++;
	}
	rep(i,n){
		wt(c[u.get(i)]);
	}
}
0