Module b

Expand description

ยงABC 351 B - Spot the Difference

refs: https://atcoder.jp/contests/abc351/tasks/abc351_b

use proconio::{input, marker::Chars};

fn main() {
    input! {
        n: usize,
        a: [Chars; n],
        b: [Chars; n],
    }

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