結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
|
提出日時 | 2024-05-01 18:40:34 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 14,213 ms |
コンパイル使用メモリ | 386,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 00:32:55 |
合計ジャッジ時間 | 15,720 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).unwrap();let s = s.split_whitespace();let n: Vec<u8> = s.clone().flat_map(str::parse).collect();let ans = match s.last().unwrap() {">" => n[0] > n[1],"<" => n[0] < n[1],_ => n[0] == n[1],};println!("{}", if ans { "YES" } else { "NO" });}