提出 #51450410


ソースコード 拡げる

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 { " " });
        }
    }
}

提出情報

提出日時
問題 C - Matrix Transposition
ユーザ bouzuya
言語 Rust (rustc 1.70.0)
得点 200
コード長 382 Byte
結果 AC
実行時間 14 ms
メモリ 9032 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 10
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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