結果
| 問題 | No.1883 SLASH |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 11:50:27 |
| 言語 | Rust (1.92.0 + proconio + num) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 24,742 ms |
| コンパイル使用メモリ | 414,944 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-11 11:50:54 |
| 合計ジャッジ時間 | 26,349 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
use proconio::{fastout, input, marker::Bytes};
#[fastout]
fn main() {
input! {
n: Bytes,
}
println!("{}", output(solve(n)));
}
fn solve(n: Vec<u8>) -> u8 {
*n.iter().max().unwrap() - n.into_iter().min().unwrap()
}
fn output(ans: u8) -> u8 {
ans
}