結果
| 問題 | No.289 数字を全て足そう | 
| コンテスト | |
| ユーザー |  silopy | 
| 提出日時 | 2019-06-27 22:19:39 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 1,000 ms | 
| コード長 | 228 bytes | 
| コンパイル時間 | 545 ms | 
| コンパイル使用メモリ | 68,000 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 14:36:11 | 
| 合計ジャッジ時間 | 1,406 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
using lint=int64_t;
int main()
{
	string S;
	cin >> S;
	int ans=0;
	for(auto& i:S)
	{
		if('0'<=i && i<='9')
			ans+=(i-'0');
	}
	cout << ans << endl;
	return 0;
}
            
            
            
        