結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー harurun
提出日時 2021-04-17 02:10:08
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 504 bytes
コンパイル時間 13,959 ms
コンパイル使用メモリ 378,104 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-14 19:41:29
合計ジャッジ時間 15,311 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main(){
    let (s,t,c):(i64,i64,char) = {
        let mut line: String = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        let mut iter = line.split_whitespace();
        (
            iter.next().unwrap().parse().unwrap(),
            iter.next().unwrap().parse().unwrap(),
            iter.next().unwrap().parse().unwrap()
        )
    };
    if(c=='=' && s==t) || (c=='<' && s<t) || (c=='>' && s>t){
        println!("YES");
    }else{
        println!("NO");
    }
}
0