結果

問題 No.1556 Power Equality
ユーザー phsplsphspls
提出日時 2022-10-28 10:44:47
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 12,599 ms
コンパイル使用メモリ 380,864 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-05 16:44:08
合計ジャッジ時間 12,250 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut temp = String::new();
    std::io::stdin().read_line(&mut temp).ok();
    let temp: Vec<usize> = temp.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
    let a = temp[0];
    let b = temp[1];

    let minval = a.min(b);
    let maxval = a.max(b);
    if minval == maxval || (minval == 2 && maxval == 4) {
        println!("Yes");
    } else {
        println!("No");
    }
}
0