結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
|
提出日時 | 2022-11-01 11:24:56 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 12,723 ms |
コンパイル使用メモリ | 404,596 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 05:29:50 |
合計ジャッジ時間 | 13,728 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
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");}}