Submission #47225133


Source Code Expand

#![allow(dead_code)]

use proconio::marker::Usize1;
fn main() {
    proconio::input! {
        a: [[Usize1; 9]; 9],
    }
    for i in 0..9 {
        let mut r = 0;
        let mut c = 0;
        let mut b = 0;

        for j in 0..9 {
            let bi = (i % 3) * 3 + j % 3;
            let bj = (i / 3) * 3 + j / 3;
            r |= 1 << a[i][j];
            c |= 1 << a[j][i];
            b |= 1 << a[bi][bj];
        }
        if !(r == 511 && c == 511 && b == 511) {
            println!("No");
            return;
        }
    }
    println!("Yes");
}

Submission Info

Submission Time
Task C - Number Place
User Lenqth
Language Rust (rustc 1.70.0)
Score 250
Code Size 561 Byte
Status AC
Exec Time 1 ms
Memory 2076 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 250 / 250
Status
AC × 3
AC × 31
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 1904 KiB
example_01.txt AC 1 ms 1804 KiB
example_02.txt AC 1 ms 1920 KiB
hand_00.txt AC 1 ms 1924 KiB
hand_01.txt AC 0 ms 1920 KiB
hand_02.txt AC 1 ms 1916 KiB
random_00.txt AC 0 ms 1856 KiB
random_01.txt AC 0 ms 1876 KiB
random_02.txt AC 0 ms 1928 KiB
random_03.txt AC 0 ms 1868 KiB
random_04.txt AC 1 ms 1868 KiB
random_05.txt AC 0 ms 1944 KiB
random_06.txt AC 0 ms 1864 KiB
random_07.txt AC 0 ms 2072 KiB
random_08.txt AC 0 ms 1788 KiB
random_09.txt AC 0 ms 2008 KiB
random_10.txt AC 0 ms 2060 KiB
random_11.txt AC 0 ms 2076 KiB
random_12.txt AC 0 ms 1944 KiB
random_13.txt AC 1 ms 1872 KiB
random_14.txt AC 0 ms 1872 KiB
random_15.txt AC 0 ms 2004 KiB
random_16.txt AC 0 ms 2016 KiB
random_17.txt AC 0 ms 1972 KiB
random_18.txt AC 1 ms 1860 KiB
random_19.txt AC 0 ms 1936 KiB
random_20.txt AC 0 ms 1876 KiB
random_21.txt AC 0 ms 1800 KiB
random_22.txt AC 1 ms 2056 KiB
random_23.txt AC 1 ms 1800 KiB
random_24.txt AC 0 ms 1968 KiB