結果

問題 No.2430 Damage Zone
ユーザー tailstails
提出日時 2023-08-21 14:02:59
言語 cLay
(20240104-1)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 4,002 ms
コンパイル使用メモリ 177,728 KB
実行使用メモリ 13,832 KB
最終ジャッジ日時 2023-08-21 14:03:05
合計ジャッジ時間 5,586 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
13,656 KB
testcase_01 AC 10 ms
13,776 KB
testcase_02 AC 10 ms
13,668 KB
testcase_03 AC 8 ms
13,600 KB
testcase_04 AC 9 ms
13,576 KB
testcase_05 AC 9 ms
13,648 KB
testcase_06 AC 8 ms
13,584 KB
testcase_07 AC 9 ms
13,768 KB
testcase_08 AC 9 ms
13,628 KB
testcase_09 AC 8 ms
13,588 KB
testcase_10 AC 9 ms
13,556 KB
testcase_11 AC 9 ms
13,648 KB
testcase_12 AC 8 ms
13,540 KB
testcase_13 AC 9 ms
13,716 KB
testcase_14 AC 11 ms
13,620 KB
testcase_15 AC 10 ms
13,580 KB
testcase_16 AC 10 ms
13,628 KB
testcase_17 AC 9 ms
13,572 KB
testcase_18 AC 9 ms
13,608 KB
testcase_19 AC 9 ms
13,572 KB
testcase_20 AC 9 ms
13,784 KB
testcase_21 AC 8 ms
13,644 KB
testcase_22 AC 9 ms
13,704 KB
testcase_23 AC 9 ms
13,560 KB
testcase_24 AC 9 ms
13,660 KB
testcase_25 AC 10 ms
13,608 KB
testcase_26 AC 9 ms
13,832 KB
testcase_27 AC 9 ms
13,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Mint f[101][101][201];
{
	ll@h,@w,@k;
	string@s[h];
	f[0][0][k-1]=1;
	rep(y,h){
		rep(x,w){
			ll c=s[y][x];
			if(c=='.'){
				rep(u,k){
					f[y+1][x][u]+=f[y][x][u];
					f[y][x+1][u]+=f[y][x][u];
				}
			}
			if(c=='o'){
				rep(u,k-1){
					f[y+1][x][u]+=f[y][x][u+1];
					f[y][x+1][u]+=f[y][x][u+1];
				}
			}
		}
	}
	wt(sum(((f[h-1][w-1]))(k)));
}
0