結果

問題 No.2359 A in S ?
ユーザー tailstails
提出日時 2023-06-23 23:02:48
言語 cLay
(20240104-1)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 2,437 ms
コンパイル使用メモリ 163,312 KB
実行使用メモリ 240,472 KB
最終ジャッジ日時 2023-09-13 18:11:48
合計ジャッジ時間 6,999 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
238,664 KB
testcase_01 AC 149 ms
238,732 KB
testcase_02 AC 150 ms
238,788 KB
testcase_03 AC 153 ms
238,648 KB
testcase_04 AC 145 ms
240,252 KB
testcase_05 AC 148 ms
239,864 KB
testcase_06 AC 144 ms
240,320 KB
testcase_07 AC 145 ms
239,916 KB
testcase_08 AC 157 ms
240,076 KB
testcase_09 AC 145 ms
240,384 KB
testcase_10 AC 145 ms
239,920 KB
testcase_11 AC 145 ms
239,960 KB
testcase_12 AC 143 ms
240,284 KB
testcase_13 AC 144 ms
240,268 KB
testcase_14 AC 145 ms
240,472 KB
testcase_15 AC 143 ms
240,136 KB
testcase_16 AC 144 ms
240,344 KB
testcase_17 AC 142 ms
240,120 KB
testcase_18 AC 145 ms
240,136 KB
testcase_19 AC 143 ms
240,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@m,d[300][100400]{};
rep(n){
	ll@l,@r++,@x,@y;
	l+=(y-l)%%x;
	r+=(y-r)%%x;
	if(x<300){
		d[x][l]+=1;
		d[x][r]-=1;
	}else{
		rep(i,l,r,x){
			d[0][i]+=1;
		}
	}
}
rep(x,1,300){
	rep(i,x,100400){
		d[x][i]+=d[x][i-x];
	}
	rep(i,100400){
		d[0][i]+=d[x][i];
	}
}
rep(m){
	ll@a;
	wt(d[0][a]);
}
0