Submission #52840336


Source Code Expand

fun main() {
    val n = readln().toInt()
    val a = List(n) {
        readln()
    }
    val b = List(n) {
        readln()
    }

    for(i in 0 until n) {
        for(j in 0 until n) {
            if(a[i][j] != b[i][j]) {
                println("${i+1} ${j+1}")
                return
            }
        }
    }
}

Submission Info

Submission Time
Task B - Spot the Difference
User dhirabayashi
Language Kotlin (Kotlin/JVM 1.8.20)
Score 150
Code Size 338 Byte
Status AC
Exec Time 109 ms
Memory 40668 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 63 ms 40008 KiB
00_sample_01.txt AC 63 ms 40092 KiB
00_sample_02.txt AC 101 ms 39968 KiB
01_random_00.txt AC 64 ms 39800 KiB
01_random_01.txt AC 84 ms 40276 KiB
01_random_02.txt AC 88 ms 40468 KiB
01_random_03.txt AC 65 ms 40100 KiB
01_random_04.txt AC 84 ms 40176 KiB
01_random_05.txt AC 109 ms 40436 KiB
01_random_06.txt AC 87 ms 40668 KiB
01_random_07.txt AC 84 ms 40436 KiB