提出 #29809856


ソースコード 拡げる

use proconio::input;

fn main() {
    input! {
        h: usize,
        w: usize,
    };
    let ans = if h == 1 || w == 1 { 1 } else { (h * w + 1) / 2 };
    println!("{}", ans);
}

提出情報

提出日時
問題 065 - Bishop
ユーザ bouzuya
言語 Rust (1.42.0)
得点 200
コード長 183 Byte
結果 AC
実行時間 4 ms
メモリ 2076 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 10
セット名 テストケース
Sample example0.txt, example1.txt, example2.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt
ケース名 結果 実行時間 メモリ
000.txt AC 4 ms 2044 KiB
001.txt AC 1 ms 1964 KiB
002.txt AC 2 ms 2012 KiB
003.txt AC 2 ms 2056 KiB
004.txt AC 3 ms 1968 KiB
005.txt AC 2 ms 1992 KiB
006.txt AC 1 ms 1980 KiB
example0.txt AC 2 ms 1980 KiB
example1.txt AC 2 ms 2076 KiB
example2.txt AC 2 ms 1936 KiB