結果

問題 No.2430 Damage Zone
ユーザー tailstails
提出日時 2023-08-18 22:25:16
言語 cLay
(20240104-1)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 3,435 ms
コンパイル使用メモリ 180,168 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-05-06 04:41:08
合計ジャッジ時間 4,499 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
11,264 KB
testcase_01 AC 9 ms
11,136 KB
testcase_02 AC 10 ms
11,264 KB
testcase_03 AC 8 ms
11,136 KB
testcase_04 AC 9 ms
11,264 KB
testcase_05 AC 9 ms
11,136 KB
testcase_06 AC 8 ms
11,136 KB
testcase_07 AC 8 ms
11,264 KB
testcase_08 AC 9 ms
11,264 KB
testcase_09 AC 9 ms
11,136 KB
testcase_10 AC 8 ms
11,264 KB
testcase_11 AC 9 ms
11,264 KB
testcase_12 AC 9 ms
11,136 KB
testcase_13 AC 8 ms
11,264 KB
testcase_14 AC 10 ms
11,264 KB
testcase_15 AC 10 ms
11,264 KB
testcase_16 AC 9 ms
11,264 KB
testcase_17 AC 10 ms
11,264 KB
testcase_18 AC 8 ms
11,264 KB
testcase_19 AC 8 ms
11,264 KB
testcase_20 AC 10 ms
11,008 KB
testcase_21 AC 8 ms
11,264 KB
testcase_22 AC 9 ms
11,264 KB
testcase_23 AC 9 ms
11,264 KB
testcase_24 AC 10 ms
11,264 KB
testcase_25 AC 9 ms
11,264 KB
testcase_26 AC 8 ms
11,264 KB
testcase_27 AC 8 ms
11,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Mint f[100][100][200];
{
	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){
					if(y>0) f[y][x][u]+=f[y-1][x][u];
					if(x>0) f[y][x][u]+=f[y][x-1][u];
				}
			}
			if(c=='o'){
				rep(u,k-1){
					if(y>0) f[y][x][u]+=f[y-1][x][u+1];
					if(x>0) f[y][x][u]+=f[y][x-1][u+1];
				}
			}
		}
	}
	wt(sum(((f[h-1][w-1]))(k)));
}
0