結果
問題 | No.3032 Unavailability of Inequality Signs |
ユーザー | tanakh |
提出日時 | 2018-04-02 04:02:10 |
言語 | Rust (1.77.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 670 bytes |
コンパイル時間 | 2,102 ms |
コンパイル使用メモリ | 143,776 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-08 13:17:06 |
合計ジャッジ時間 | 2,995 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
fn read_line() -> String { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); s.trim().to_owned() } fn main() { let n = read_line().parse().unwrap(); for _ in 0..n { let line = read_line(); let a: i32 = line.split_whitespace().nth(0).unwrap().parse().unwrap(); let b: i32 = line.split_whitespace().nth(1).unwrap().parse().unwrap(); use std::cmp::Ordering; println!( "{}", match a.cmp(&b) { Ordering::Equal => '=', Ordering::Greater => 62u8 as char, Ordering::Less => 60u8 as char, } ); } }