Commit fba1e0f8 authored by Kittipong Maneewong's avatar Kittipong Maneewong

ส่งงาน week06

parent 8dbf9242
...@@ -17,4 +17,15 @@ def Ab2Uc(A,b) : ...@@ -17,4 +17,15 @@ def Ab2Uc(A,b) :
print ("U : ",U) print ("U : ",U)
print () print ()
print ("c : ",c) print ("c : ",c)
Ab2Uc([[4, -2, 1],[-2, 4, -2],[1, -2, 4]],[11,-16,17]) m,n,_ = map(int,input().split('x'))
print(m,n)
#รับ A
A=[]
for row in range(m):
#2,3,1,4,7
A.append(list(map(int,input().split(','))))
print(n,_)
#รับ b
b = list(map(int,input().split(',')))
Ab2Uc(A,b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment