Posts by Guilherme Ferreira • 31 points
5 posts
-
0
votes2
answers305
viewsA: Hide bombs in a minefield with ASCII 2
By running its program the matrix has only 0’s and 1’s, but the minefield needs to have the amount of bombs it has next to an empty house, which are at most 8 (had placed wrong) bombs for any index…
canswered Guilherme Ferreira 31 -
0
votes1
answer75
viewsA: Problem with numpy matrix
I found a solution testeSolucao.item(i) works by picking up each item
-
1
votes1
answer75
viewsQ: Problem with numpy matrix
I’m having a problem using NUMPY. It has an array testeSolucao, of that kind <class 'numpy.matrixlib.defmatrix.matrix'>, And I need to get the least amount of it, but I can’t. At first I…
-
1
votes2
answers2057
viewsA: python vector input
I managed to solve the problem. But I realized that my problem was to receive the answer from map m = int(input()) n = int(input()) A = [] for i in range(m): A.append( [0] *(m+n)) list = [0]*(n)…
-
1
votes2
answers2057
viewsQ: python vector input
I have some input values of a matrix that will have the input of the following form: 1 2 3 4 2 3 4 0 so I’m trying to take the first line of m+n elements to turn everything into float, but it’s not…