結果

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

ソースコード

diff #

#include <stdio.h>
int main(void){
	char S;
	int count = 0;
	
	while( (S = getchar() ) != EOF ){
		//S = getchar();
		if(S == '0'){
			count += 10;
		}else{
			count += (S - 48);
		}
	}
	
	printf("%d\n",count);
	return 0;
}
0