結果

問題 No.2359 A in S ?
ユーザー tailstails
提出日時 2023-06-23 22:58:21
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 2,206 ms
コンパイル使用メモリ 163,528 KB
実行使用メモリ 240,612 KB
最終ジャッジ日時 2023-09-13 18:05:56
合計ジャッジ時間 9,581 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 281 ms
238,848 KB
testcase_01 AC 279 ms
238,652 KB
testcase_02 WA -
testcase_03 AC 279 ms
238,664 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

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,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