結果
| 問題 | No.289 数字を全て足そう | 
| コンテスト | |
| ユーザー |  TangentDay | 
| 提出日時 | 2016-02-11 03:39:52 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 525 bytes | 
| コンパイル時間 | 757 ms | 
| コンパイル使用メモリ | 75,664 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-08 00:44:39 | 
| 合計ジャッジ時間 | 1,529 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <algorithm>
using namespace std;
#define REP(i,n) for(int i=0; i<n; i++)
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define FORR(i,a,b) for (int i=a; i>=b; i--)
typedef long long ll;
int main(void){
	string str;
	cin >> str;
	int ans = 0;
	REP(i,str.length()){
		if (str[i]>='0' && str[i]<='9')
			ans += str[i]-'0';
	}
	cout << ans << endl;
	return 0;
}
            
            
            
        