結果
問題 | No.2430 Damage Zone |
ユーザー | Mottchan |
提出日時 | 2023-08-19 10:18:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 61,056 KB |
最終ジャッジ日時 | 2024-05-06 17:31:01 |
合計ジャッジ時間 | 3,036 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 40 ms
52,480 KB |
testcase_04 | AC | 40 ms
52,352 KB |
testcase_05 | AC | 45 ms
59,264 KB |
testcase_06 | WA | - |
testcase_07 | AC | 38 ms
52,352 KB |
testcase_08 | AC | 40 ms
51,840 KB |
testcase_09 | AC | 40 ms
51,712 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
ソースコード
MOD=998244353 n,m,k = map(int,input().split()) l = [input() for _ in range(n)] dp = [[0]*m for i in range(n)] for i in range(n): for j in range(m): if i == 0 or j == 0: dp[i][j] = 1 else: if l[i][j] == '#': dp[i][j] = 0 else: dp[i][j] = dp[i][j-1] + dp[i-1][j] dp[i][j] %= MOD print(dp[-1][-1])