Submission #1872368
Source Code Expand
#include<bits/stdc++.h> using namespace std; long long maps[100000][100000]; int main(){ int h,w; cin>>h>>w; for(int i=0;i<=h;i++)maps[i][0]=0; for(int i=0;i<=w;i++)maps[0][i]=0; maps[0][1]=1; for(int i=1;i<=h;i++){ for(int j=1;j<=w;j++){ maps[i][j]=maps[i-1][j]+maps[i][j-1]; maps[i][j]%=1000000007; } } cout<<maps[h][w]<<endl; return(0); }
Submission Info
Submission Time | |
---|---|
Task | C - 経路 |
User | contest |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 396 Byte |
Status | CE |
Compile Error
/tmp/ccdlOvho.o: In function `_GLOBAL__sub_I_maps': Main.cpp:(.text.startup+0x1a5): relocation truncated to fit: R_X86_64_32 against `.bss' Main.cpp:(.text.startup+0x1b4): relocation truncated to fit: R_X86_64_32 against `.bss' collect2: error: ld returned 1 exit status