結果

問題 No.1070 Missing a space
ユーザー
提出日時 2024-04-25 18:02:10
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 167 bytes
コンパイル時間 14,247 ms
コンパイル使用メモリ 379,228 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-08 05:26:09
合計ジャッジ時間 13,821 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut c = String::new();
    std::io::stdin().read_line(&mut c).unwrap();

    println!("{}", c.trim().chars().filter(|&c| c != '0').count() - 1);
}
0