結果

問題 No.1070 Missing a space
ユーザー れあ
提出日時 2025-01-12 23:04:23
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 77,296 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-12 23:04:25
合計ジャッジ時間 1,385 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	
	unsigned long input;
	auto len = 0;
	auto zero = 0;
	
	cin >> input;

	while(input!=0){
		
		if(input % 10 == 0){
			
			zero++;
			
		}

		input /= 10;
		len += 1;
		
	}
	
	cout << len - zero - 1 << endl;
	
	
	return 0;
}
0