結果
問題 | No.1415 100の倍数かつ正整数(1) |
ユーザー |
|
提出日時 | 2024-04-30 15:49:25 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 11,034 ms |
コンパイル使用メモリ | 389,012 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-20 11:59:59 |
合計ジャッジ時間 | 12,022 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 2 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let s = s.trim();let m = s.matches('-').count() == 0;let s: String = s.chars().take(s.len() - 2).collect();println!("{}", if m { &s } else { "0" });}