結果

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

テストケース

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

ソースコード

diff #

ll@H,@W,a[H][W][2d2]{{{0,1}}},d;string@A[H];rep(i,H)rep(j,W)rep(c,2d2)d=A[i][j]=='o'?c-1:A[i][j]=='x'?c+1:3d2,a[i][j][c]+=0<=d<2d2?(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,2d2](a[H-1][W-1][c]));
0