結果

問題 No.1070 Missing a space
ユーザー pengin_2000
提出日時 2021-03-15 14:12:50
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-07 02:16:27
合計ジャッジ時間 1,109 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	char c[102];
	scanf("%s", c);
	int ans = 0;
	int i;
	for (i = 1; c[i] != '\0'; i++)
		if (c[i] != '0')
			ans++;
	printf("%d\n", ans);
	return 0;
}
0