結果

問題 No.656 ゴルフ
ユーザー funakoshi
提出日時 2019-08-21 13:45:44
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 1,072 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 15:57:34
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    char str[1000]={""};
    int score=0;
    scanf("%s",str);
    for(int i=0;i<9;i++)
    {
        char tmp=str[i];
        if(tmp!='0')
        {
            score+=tmp-'0';
        }
        else
        {
            score+=10;
        }
        
    }
}
0