結果

問題 No.2566 美しい整数列
ユーザー 👑 p-adicp-adic
提出日時 2023-12-02 21:04:19
言語 cLay
(20240104-1)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 2,488 ms
コンパイル使用メモリ 181,320 KB
実行使用メモリ 23,168 KB
最終ジャッジ日時 2023-12-02 21:04:26
合計ジャッジ時間 6,616 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 1 ms
6,676 KB
testcase_04 AC 93 ms
23,168 KB
testcase_05 AC 92 ms
23,168 KB
testcase_06 AC 25 ms
10,624 KB
testcase_07 AC 25 ms
10,624 KB
testcase_08 AC 25 ms
10,624 KB
testcase_09 AC 25 ms
10,624 KB
testcase_10 AC 25 ms
10,624 KB
testcase_11 AC 56 ms
13,696 KB
testcase_12 AC 55 ms
13,696 KB
testcase_13 AC 55 ms
13,696 KB
testcase_14 AC 54 ms
13,696 KB
testcase_15 AC 57 ms
13,696 KB
testcase_16 AC 106 ms
22,272 KB
testcase_17 AC 110 ms
22,528 KB
testcase_18 AC 119 ms
22,656 KB
testcase_19 AC 76 ms
16,512 KB
testcase_20 AC 99 ms
21,248 KB
testcase_21 AC 115 ms
21,632 KB
testcase_22 AC 77 ms
15,488 KB
testcase_23 AC 79 ms
19,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@M,@A[N],@B[M],@C[N],D[N]{},s=0,a=0;map<ll,ll>c;REP(i,N-1)A[i+1]-=D[i+1]=D[i]+B[i%M];rep(i,N)s+=C[i],c[A[i]]+=C[i];auto j=c.begin(),e=c.end();for(;j!=e;j++)a>?=j->second;wt(s-a);
0