結果

問題 No.2708 Jewel holder
ユーザー 👑 p-adicp-adic
提出日時 2024-04-04 21:44:02
言語 cLay
(20240104-1)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 2,660 ms
コンパイル使用メモリ 178,964 KB
実行使用メモリ 21,568 KB
最終ジャッジ日時 2024-04-04 21:44:06
合計ジャッジ時間 3,642 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
9,024 KB
testcase_01 AC 3 ms
9,024 KB
testcase_02 AC 4 ms
9,024 KB
testcase_03 AC 3 ms
8,512 KB
testcase_04 AC 3 ms
8,512 KB
testcase_05 AC 3 ms
8,128 KB
testcase_06 AC 2 ms
8,128 KB
testcase_07 AC 4 ms
10,048 KB
testcase_08 AC 7 ms
13,248 KB
testcase_09 AC 6 ms
12,224 KB
testcase_10 AC 5 ms
12,224 KB
testcase_11 AC 7 ms
13,760 KB
testcase_12 AC 3 ms
9,408 KB
testcase_13 AC 7 ms
14,144 KB
testcase_14 AC 5 ms
11,456 KB
testcase_15 AC 9 ms
15,168 KB
testcase_16 AC 5 ms
10,816 KB
testcase_17 AC 14 ms
21,568 KB
testcase_18 AC 12 ms
18,752 KB
testcase_19 AC 11 ms
18,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@H,@W,L=2d4,a[H][W][L]{{{0,1}}},d;string@A[H];rep(i,H)rep(j,W)rep(c,L)d=A[i][j]=='o'?c-1:A[i][j]=='x'?c+1:-1,a[i][j][c]+=0<=d<L?(i&&A[i-1][j]!='#'?a[i-1][j][d]:0)+(j&&A[i][j-1]!='#'?a[i][j-1][d]:0):0;wt(sum[c,0,L](a[H-1][W-1][c]));
0