結果
| 問題 | No.1070 Missing a space |
| コンテスト | |
| ユーザー |
かりあげクン
|
| 提出日時 | 2020-08-05 16:49:15 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 1,000 ms |
| + 889µs | |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 344 ms |
| コンパイル使用メモリ | 171,516 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-29 08:09:52 |
| 合計ジャッジ時間 | 1,750 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
use std::io::Read;
fn main() {
let mut s : String = String::new();
std::io::stdin().read_to_string(&mut s).ok();
let mut ans = -1;
for i in s.as_str().chars() {
if i == '0' { continue } else { ans += 1 }
}
println!("{}", ans - 1);
}
かりあげクン