結果

問題 No.289 数字を全て足そう
ユーザー pracode
提出日時 2018-09-16 20:49:38
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 07:31:22
合計ジャッジ時間 989 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main()
{
    char str[100001];
    int i;
    int sum=0;
    
    scanf("%s",str);
    
    for(i=0;str[i]!='\0';i++){
        sum+=atoi(&str[i]);
    }
    printf("%d\n",sum);
    return 0;
}
0