結果
| 問題 | No.1527 Input Constant is Good |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 22:48:25 |
| 言語 | Rust (1.92.0 + proconio + num) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 22,969 ms |
| コンパイル使用メモリ | 413,032 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 22:48:53 |
| 合計ジャッジ時間 | 23,995 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
use proconio::{fastout, input};
#[fastout]
fn main() {
input! {
a: u16,
b: u16,
}
println!("{}", output(solve(a, b)))
}
fn solve(a: u16, b: u16) -> bool {
a <= b
}
fn output(ans: bool) -> &'static str {
match ans {
true => "Yes",
false => "No",
}
}