結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 22:46:05 |
| 言語 | Rust (1.92.0 + proconio + num) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 27,268 ms |
| コンパイル使用メモリ | 411,956 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 22:46:34 |
| 合計ジャッジ時間 | 25,225 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
use proconio::{fastout, input};
#[fastout]
fn main() {
input! {
s: u8,
t: u8,
c: char,
}
println!("{}", output(solve(s, t, c)))
}
fn solve(s: u8, t: u8, c: char) -> bool {
match c {
'<' => s < t,
'>' => s > t,
'=' => s == t,
_ => unreachable!(),
}
}
fn output(ans: bool) -> &'static str {
match ans {
true => "YES",
false => "NO",
}
}