結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
コンテスト
ユーザー phspls
提出日時 2022-11-01 11:24:56
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 763µs
コード長 511 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,004 ms
コンパイル使用メモリ 182,652 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-13 15:57:05
合計ジャッジ時間 8,997 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    let mut temp = String::new();
    std::io::stdin().read_line(&mut temp).ok();
    let temp: Vec<&str> = temp.trim().split_whitespace().collect();
    let s = temp[0].parse::<usize>().unwrap();
    let t = temp[1].parse::<usize>().unwrap();
    let c = temp[2].chars().nth(0).unwrap();

    let flg = match c {
        '<' => s < t,
        '>' => s > t,
        '=' => s == t,
        _ => unreachable!()
    };
    if flg {
        println!("YES");
    } else {
        println!("NO");
    }
}
0