結果
| 問題 | No.1415 100の倍数かつ正整数(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-15 14:23:02 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 846µs | |
| コード長 | 399 bytes |
| 記録 | |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 187,996 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 10:40:42 |
| 合計ジャッジ時間 | 2,637 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
use proconio::{fastout, input, marker::Bytes};
#[fastout]
fn main() {
input! {
n: Bytes,
}
println!("{}", output(solve(n)))
}
fn solve(mut n: Vec<u8>) -> Vec<u8> {
if *n.first().unwrap() == b'-' || n.len() <= 2 {
vec![b'0']
} else {
n.pop();
n.pop();
n
}
}
fn output(ans: Vec<u8>) -> String {
String::from_utf8(ans).unwrap()
}