結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
tanakh
|
| 提出日時 | 2018-04-02 04:02:10 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 670 bytes |
| コンパイル時間 | 23,308 ms |
| コンパイル使用メモリ | 374,896 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 06:29:32 |
| 合計ジャッジ時間 | 15,083 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
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,
}
);
}
}
tanakh