problem statement: cses grid paths https://cses.fi/problemset/task/1638/ What is wrong with my code?? code: Link to this code: https://cses.fi/paste/d5d85fe7f661fdba3fd8f3/
# | User | Rating |
---|---|---|
1 | tourist | 3771 |
2 | jiangly | 3688 |
3 | Um_nik | 3539 |
4 | slime | 3498 |
5 | djq_cpp | 3486 |
6 | MiracleFaFa | 3466 |
7 | ksun48 | 3452 |
8 | Radewoosh | 3406 |
9 | greenheadstrange | 3393 |
10 | xtqqwq | 3382 |
# | User | Contrib. |
---|---|---|
1 | -is-this-fft- | 183 |
2 | awoo | 181 |
3 | YouKn0wWho | 177 |
4 | Um_nik | 175 |
5 | dario2994 | 172 |
6 | Monogon | 170 |
6 | adamant | 170 |
8 | maroonrk | 169 |
9 | antontrygubO_o | 165 |
10 | errorgorn | 164 |
problem statement: cses grid paths https://cses.fi/problemset/task/1638/ What is wrong with my code?? code: Link to this code: https://cses.fi/paste/d5d85fe7f661fdba3fd8f3/
Name |
---|
Your code is not readable. Do you mind formatting it a little?
You can simply use spoiler tag and triple tilde for a cleaner look like this:
Edit-1: Do write your logic above code so it's easier to figure out mistake
Now its readable
I figured out the mistake.
Check all the numbers you have used in code :)
MOD value you used is
10000007 = 1e7 + 7
.MOD value expected in question is
1000000007 = 1e9 + 7
.Thanks
Auto comment: topic has been updated by James_Bond_OO7 (previous revision, new revision, compare).
no help