Submission #23258


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<bits/stdc++.h>
using namespace std;
int main(){
int h,w;
scanf("%d %d",&h,&w);
vector<vector<long long> > dp(h,vector<long long>(w,1));
for(int i=h-2;i>=0;--i){
for(int j=1;j<w;++j){
dp[i][j]=(dp[i+1][j]+dp[i][j-1])%10007;
}
}
printf("%lld\n",dp[0][w-1]);
return 0;
}

ステータス

項目 データ
問題 0236 - School Load(Easy)
ユーザー名 Wonder /*ei1741*/
投稿日時 2017-07-27 09:22:47
言語 C++11
状態 Accepted
得点 3
ソースコード長 319 Byte
最大実行時間 19 ms
最大メモリ使用量 8428 KB

セット

セット 得点 Cases
1 ALL 3 / 3 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 10 ms 476 KB
1
2.txt AC 14 ms 708 KB
1
3.txt AC 11 ms 552 KB
1
4.txt AC 11 ms 516 KB
1
5.txt AC 19 ms 8428 KB
1
6.txt AC 14 ms 1056 KB
1
7.txt AC 15 ms 5300 KB
1