結果
| 問題 | No.1070 Missing a space | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-06-06 13:55:04 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 258 bytes | 
| コンパイル時間 | 1,752 ms | 
| コンパイル使用メモリ | 166,604 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 12:25:53 | 
| 合計ジャッジ時間 | 2,447 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
	string c; cin>>c;
	ll ans=0;
	rep(i,c.size()-1){
		string s=c.substr(i+1,c.size());
		if(s[0]!='0') ans++;
	}
	cout << ans << endl;	
}
            
            
            
        