結果

問題 No.2708 Jewel holder
ユーザー 👑 p-adicp-adic
提出日時 2024-04-04 21:42:55
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 2,822 ms
コンパイル使用メモリ 179,320 KB
実行使用メモリ 21,568 KB
最終ジャッジ日時 2024-04-04 21:42:59
合計ジャッジ時間 3,836 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
9,024 KB
testcase_01 WA -
testcase_02 AC 4 ms
9,024 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 3 ms
8,128 KB
testcase_07 WA -
testcase_08 AC 7 ms
13,248 KB
testcase_09 WA -
testcase_10 AC 7 ms
12,224 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 10 ms
15,168 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

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'?d+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