提出 #39820679


ソースコード 拡げる

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

fn main() {
    input! {
        c: [Chars; 2],
    };
    let mut ok = true;
    for i in 0..2 {
        for j in 0..3 {
            if c[i][j] != c[2 - 1 - i][3 - 1 - j] {
                ok = false;
            }
        }
    }
    let ans = ok;
    println!("{}", if ans { "YES" } else { "NO" });
}

提出情報

提出日時
問題 A - Rotation
ユーザ bouzuya
言語 Rust (1.42.0)
得点 100
コード長 343 Byte
結果 AC
実行時間 6 ms
メモリ 2188 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt
ケース名 結果 実行時間 メモリ
01.txt AC 6 ms 2076 KiB
02.txt AC 2 ms 2028 KiB
03.txt AC 1 ms 2028 KiB
04.txt AC 2 ms 1980 KiB
05.txt AC 2 ms 2016 KiB
06.txt AC 4 ms 2104 KiB
07.txt AC 2 ms 2032 KiB
08.txt AC 2 ms 2008 KiB
09.txt AC 3 ms 2088 KiB
10.txt AC 2 ms 2088 KiB
s1.txt AC 3 ms 2020 KiB
s2.txt AC 2 ms 2112 KiB
s3.txt AC 1 ms 2188 KiB