結果

問題 No.2423 Merge Stones
ユーザー 👑 p-adicp-adic
提出日時 2023-08-30 17:33:03
言語 cLay
(20240420-1)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 2,648 ms
コンパイル使用メモリ 177,076 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-10 17:13:54
合計ジャッジ時間 29,533 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
6,944 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 WA -
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 1 ms
6,940 KB
testcase_11 AC 578 ms
6,940 KB
testcase_12 AC 279 ms
6,940 KB
testcase_13 AC 453 ms
6,940 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 375 ms
6,940 KB
testcase_17 AC 329 ms
6,944 KB
testcase_18 AC 381 ms
6,940 KB
testcase_19 AC 275 ms
6,940 KB
testcase_20 WA -
testcase_21 AC 455 ms
6,940 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 301 ms
6,940 KB
testcase_25 AC 302 ms
6,948 KB
testcase_26 AC 314 ms
6,940 KB
testcase_27 WA -
testcase_28 AC 454 ms
6,944 KB
testcase_29 WA -
testcase_30 AC 324 ms
6,944 KB
testcase_31 AC 325 ms
6,944 KB
testcase_32 AC 476 ms
6,944 KB
testcase_33 AC 312 ms
6,940 KB
testcase_34 WA -
testcase_35 AC 333 ms
6,944 KB
testcase_36 AC 327 ms
6,940 KB
testcase_37 AC 299 ms
6,940 KB
testcase_38 AC 304 ms
6,948 KB
testcase_39 WA -
testcase_40 AC 384 ms
6,940 KB
testcase_41 AC 364 ms
6,940 KB
testcase_42 AC 456 ms
6,944 KB
testcase_43 AC 272 ms
6,940 KB
testcase_44 AC 460 ms
6,944 KB
testcase_45 AC 311 ms
6,940 KB
testcase_46 AC 348 ms
6,944 KB
testcase_47 WA -
testcase_48 AC 302 ms
6,944 KB
testcase_49 AC 274 ms
6,944 KB
testcase_50 AC 277 ms
6,944 KB
testcase_51 AC 436 ms
6,940 KB
testcase_52 AC 419 ms
6,940 KB
testcase_53 AC 530 ms
6,940 KB
testcase_54 AC 429 ms
6,940 KB
testcase_55 AC 528 ms
6,940 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 AC 556 ms
6,944 KB
testcase_62 AC 569 ms
6,940 KB
testcase_63 AC 563 ms
6,944 KB
testcase_64 AC 563 ms
6,944 KB
testcase_65 AC 571 ms
6,940 KB
testcase_66 AC 543 ms
6,944 KB
testcase_67 AC 556 ms
6,940 KB
testcase_68 AC 569 ms
6,944 KB
testcase_69 AC 571 ms
6,944 KB
testcase_70 AC 557 ms
6,940 KB
testcase_71 AC 494 ms
6,940 KB
testcase_72 AC 496 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@K,@A[N],@C[N],B[N][N]={},k;rep(i,N)B[i][i]=1LL<<C[i];rep(l,1,N)rep(i,N){k=i+l;rep(j,i,k)REP(d,K+1)B[i][k%N]|=B[i][j%N]&B[(j+1)%N][k%N]<<d|B[i][j%N]&B[(j+1)%N][k%N]>>d;}wt(max[(i,l),0,N@B[i][(i+l)%N]](sum[m,i,i+l+1](A[m%N])));
0