Submission #52881959


Source Code Expand

N = int(input())
A=[input() for l in range(N)]
B=[input() for l in range(N)]

# print(N)
# print(A)
# print(B)

for i in range(N):
    for j in range(N):
        # print(A[i][j],B[i][j])
        if A[i][j] != B[i][j]:
            print(i+1,j+1)
            break;

Submission Info

Submission Time
Task B - Spot the Difference
User Sirocco110
Language Python (PyPy 3.10-v7.3.12)
Score 150
Code Size 276 Byte
Status AC
Exec Time 67 ms
Memory 81180 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 3
AC × 11
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 62 ms 76432 KiB
00_sample_01.txt AC 62 ms 76868 KiB
00_sample_02.txt AC 62 ms 76572 KiB
01_random_00.txt AC 62 ms 76524 KiB
01_random_01.txt AC 66 ms 80884 KiB
01_random_02.txt AC 67 ms 80876 KiB
01_random_03.txt AC 63 ms 76504 KiB
01_random_04.txt AC 66 ms 80924 KiB
01_random_05.txt AC 65 ms 81180 KiB
01_random_06.txt AC 67 ms 81108 KiB
01_random_07.txt AC 66 ms 81128 KiB