-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfeifei_xia.py
More file actions
59 lines (46 loc) · 881 Bytes
/
feifei_xia.py
File metadata and controls
59 lines (46 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
# @Time : 2019/2/16 11:28
# @Author : RIO
# @desc: TODO:DESC
# http://www.tsinsen.com/A1228###
#
# 4 4
# 0 0 0 0
# 1 2 2 0
# 0 2 2 1
# 0 0 0 0
# 5 5 5 5
# 5 5 5 5
# 5 5 5 5
# 5 5 5 5
# 2 1 3 4 2 2
#
# Z
# 15
#
# 20% N, M ≤ 10; Bij ≤ 20
# 40% N, M ≤ 100; Bij ≤ 20
# 100% 1 ≤ N, M ≤ 150; 0 ≤ Bij ≤ 109; 0 ≤ Aij ≤ 1000
def get_min_cost(n, m, aij, bij, x, y, z):
pass
def dp(aij, bij):
pass
if __name__ == '__main__':
n = input()
m = input()
aij = []
for i in n:
row = []
for j in m:
row.append(input())
aij.append(row)
bij = []
for i in n:
row = []
for j in m:
row.append(input())
bij.append(row)
x = (input(), input())
y = (input(), input())
z = (input(), input())
get_min_cost(n, m, aij, bij, x, y, z)