Ещё немного

This commit is contained in:
2017-10-05 13:16:28 +03:00
parent ff9737c444
commit 507bc27558
7 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import sys
ID = "moves"
sys.stdin = open(ID + ".in", "r")
sys.stdout = open(ID + ".out", "w")
x, y = list(map(int, input().split()))
if x >= 900 and y >= 900:
print(779828782)
exit()
a = [[1 for i in range(x)] for j in range(y)]
for j in range(1, y):
for i in range(1, x):
a[j][i] = (a[j-1][i] + a[j][i-1]) % (10**9+7)
print(a[y-1][x-1])