Submission #16553186


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        h: usize,
        w: usize,
        a: usize,
        b: usize,
    };
    for r in 0..h {
        for c in 0..w {
            print!(
                "{}",
                match (r < b, c < a) {
                    (true, true) => 0,
                    (true, false) => 1,
                    (false, true) => 1,
                    (false, false) => 0,
                }
            );
        }
        println!();
    }
}

Submission Info

Submission Time
Task A - 01 Matrix
User bouzuya
Language Rust (1.42.0)
Score 300
Code Size 482 Byte
Status AC
Exec Time 112 ms
Memory 2092 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 14
Set Name Test Cases
Sample sample-01.txt, sample-02.txt
All 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, sample-01.txt, sample-02.txt
Case Name Status Exec Time Memory
01-01.txt AC 6 ms 1996 KB
01-02.txt AC 2 ms 2092 KB
01-03.txt AC 2 ms 2004 KB
01-04.txt AC 3 ms 2080 KB
01-05.txt AC 3 ms 2056 KB
01-06.txt AC 104 ms 2044 KB
01-07.txt AC 8 ms 2052 KB
01-08.txt AC 73 ms 1904 KB
01-09.txt AC 109 ms 2048 KB
01-10.txt AC 112 ms 1908 KB
01-11.txt AC 109 ms 1980 KB
01-12.txt AC 111 ms 2076 KB
sample-01.txt AC 5 ms 2036 KB
sample-02.txt AC 2 ms 2056 KB