結果

問題 No.1027 U+1F4A0
コンテスト
ユーザー t33f
提出日時 2020-04-18 08:39:29
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 847µs
コード長 417 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 14,780 ms
コンパイル使用メモリ 183,392 KB
実行使用メモリ 9,932 KB
最終ジャッジ日時 2026-09-09 21:31:05
合計ジャッジ時間 7,331 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    use std::io::Read;
    let mut input = String::new();
    std::io::stdin().read_to_string(&mut input).unwrap();
    let mut iter = input.split_whitespace();
    let a : usize = iter.next().unwrap().parse().unwrap();
    let b : usize = iter.next().unwrap().parse().unwrap();

    if a == b || 2 * a == b { print!("4\n") }
    else if b < a || 2 * a < b  { print!("0\n") }
    else { print!("8\n") }
}
0