結果

問題 No.509 塗りつぶしツール
ユーザー Yamyuki
提出日時 2017-04-28 22:43:00
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 789 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 18:11:52
合計ジャッジ時間 1,714 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(int argc, char const *argv[]){
	char num[11];
	int ans=1,i=0;
	scanf("%s",num);
	while(num[i]!='\0'){
		ans+=2;
		if(num[i]=='0' || num[i]=='4' || num[i]=='6' || num[i]=='9') ans++;
		if(num[i]=='8') ans+=2;
		i++;
	}
	getchar();
	printf("%d\n",ans);
	return 0;
}
0