結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	
	unsigned 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