Hello! So first here's my Python-Code for the Vestigium-Problem for the 
qualification round 2020:

testCases = int(input())

for solveTestCase in range(1, testCases + 1):
    size = int(input())
    trace, rowsSame, columnsSame = 0, 0, 0
    matrix = []

    # creates the matrix
    for row in range(size):
        matrix.append(list(input().replace(" ", "")))

    for index in range(len(matrix)):

        # row
        if len(set(matrix[index])) < size:
            rowsSame += 1

        # column
        if len(set([value[index] for value in matrix])) < size:
            columnsSame += 1

        # trace
        trace += int(matrix[index][index])

    # None of them work for me!
    print("Case #{}: {} {} {}".format(solveTestCase, trace, rowsSame, 
columnsSame))
    print("Case #%d: %d %d %d" % (solveTestCase, trace, rowsSame, columnsSame), 
flush=True)
    print("Case #" + str(solveTestCase) + ": " + str(trace) + " " + 
str(rowsSame) + " " + str(columnsSame))


This is the output, if I enter the examples:

Case #1: 4 0 0
Case #2: 9 4 4
Case #3: 8 0 2

So everything seems to work, but if I try to submit my solution, it says 
that it's the wrong answer! I've tried these 3 ways to print out my 
solution and I don't understand what I'm doing wrong...
Does anybody sees the problem? (Of course I used only one "print()", when I 
submitted!)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/8c7d47c5-9169-42c3-9b32-8d02b7ceabbd%40googlegroups.com.

Reply via email to