結果
| 問題 | 
                            No.289 数字を全て足そう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-02-14 14:38:55 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 214 bytes | 
| コンパイル時間 | 1,662 ms | 
| コンパイル使用メモリ | 168,164 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-06 07:55:23 | 
| 合計ジャッジ時間 | 2,076 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 3 WA * 18 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;cin>>s;
    int ans=0;
    for(int i=0;i<10;i++){
        if(isdigit(s[i])){
            ans+=s[i]-'0';
        }
    }
    cout<<ans<<endl;
}