結果

問題 No.656 ゴルフ
ユーザー monburan_0401
提出日時 2018-09-14 15:36:54
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 17:17:57
合計ジャッジ時間 556 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
	char S;
	int count = 0;
	
	for(int i = 0; i < 9; i++){
		scanf("%c",&S);
		if(S == '0'){
			count += 10;
		}else{
			count += (S - 48);
		}
	}
	
	printf("%d\n",count);
	return 0;
}
0