結果

問題 No.2566 美しい整数列
ユーザー tailstails
提出日時 2023-12-14 11:34:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 109 bytes
コンパイル時間 2,815 ms
コンパイル使用メモリ 181,708 KB
実行使用メモリ 21,504 KB
最終ジャッジ日時 2023-12-14 11:34:19
合計ジャッジ時間 6,612 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 84 ms
21,504 KB
testcase_05 AC 82 ms
21,504 KB
testcase_06 AC 26 ms
9,088 KB
testcase_07 AC 26 ms
9,088 KB
testcase_08 AC 25 ms
9,088 KB
testcase_09 AC 26 ms
9,088 KB
testcase_10 AC 26 ms
9,088 KB
testcase_11 AC 52 ms
12,160 KB
testcase_12 AC 51 ms
12,160 KB
testcase_13 AC 52 ms
12,160 KB
testcase_14 AC 50 ms
12,160 KB
testcase_15 AC 50 ms
12,160 KB
testcase_16 AC 88 ms
20,608 KB
testcase_17 AC 91 ms
20,864 KB
testcase_18 AC 100 ms
20,992 KB
testcase_19 AC 65 ms
15,488 KB
testcase_20 AC 82 ms
19,712 KB
testcase_21 AC 98 ms
20,224 KB
testcase_22 AC 67 ms
14,464 KB
testcase_23 AC 67 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@m,@a[n],@b[m],@c[n],d,e=0;
map<ll,ll>f;
rep(i,n){
	e>?=f[d-a[i]]+=c[i];
	d+=b[i%m];
}
wt(sum(c(n))-e);
0