結果

問題 No.671 1000000007
ユーザー bal4ubal4u
提出日時 2019-04-14 06:06:22
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 27,660 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 09:28:21
合計ジャッジ時間 1,155 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,352 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 0 ms
4,352 KB
testcase_03 AC 0 ms
4,352 KB
testcase_04 AC 0 ms
4,352 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 0 ms
4,352 KB
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 0 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 0 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder: No.671 1000000007
// 2019.4.14 bal4u

#include <stdio.h>

#define ABS(a) ((a)>=0?(a):-(a))
char N[20], *p = N+1;

int main(void)
{
	int n;
	scanf("%s", N);
	n = 0; while (*p == '0') n++, p++;
	printf("%d\n", ABS(n - 8));
	return 0;
}
0