結果

問題 No.2736 About half
ユーザー konishi shogo
提出日時 2024-04-20 10:49:28
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 12,974 ms
コンパイル使用メモリ 400,840 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 06:24:39
合計ジャッジ時間 13,644 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
	let nums: Vec<u32> = read_vec();
    let (a, b) = (nums[0],nums[1]);
    if a.max(b) >= 2 * a.min(b) {
        println!("Yes")
    } else {
        println!("No")
    }
}

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    read::<String>()
        .split_whitespace()
        .map(|e| e.parse().ok().unwrap())
        .collect()
}
0