Submission #51450410


Source Code Expand

use proconio::input;

fn main() {
    input! {
        h: usize,
        w: usize,
        a: [[usize; w]; h],
    };
    let mut b = vec![vec![0; h]; w];
    for i in 0..h {
        for j in 0..w {
            b[j][i] = a[i][j];
        }
    }
    for i in 0..w {
        for j in 0..h {
            print!("{}{}", b[i][j], if j == w - 1 { "\n" } else { " " });
        }
    }
}

Submission Info

Submission Time
Task C - Matrix Transposition
User bouzuya
Language Rust (rustc 1.70.0)
Score 200
Code Size 382 Byte
Status AC
Exec Time 14 ms
Memory 9032 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, example0.txt, example1.txt
Case Name Status Exec Time Memory
000.txt AC 14 ms 8976 KiB
001.txt AC 1 ms 2088 KiB
002.txt AC 13 ms 9032 KiB
003.txt AC 10 ms 4524 KiB
004.txt AC 10 ms 4188 KiB
005.txt AC 10 ms 4192 KiB
006.txt AC 10 ms 4476 KiB
007.txt AC 13 ms 8996 KiB
example0.txt AC 1 ms 1872 KiB
example1.txt AC 1 ms 1872 KiB