結果

問題 No.1070 Missing a space
ユーザー Kkkt_At_Math
提出日時 2020-07-23 18:35:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 1,545 ms
コンパイル使用メモリ 167,932 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 17:52:58
合計ジャッジ時間 2,049 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin >> s;
    int a = s.size();
    int count =0;
    
    for(int i=0;i<a;i++){
        if(s[i]==0) count++;
    }
    
    cout << a-1-count << endl;
}
0