結果
問題 |
No.289 数字を全て足そう
|
ユーザー |
|
提出日時 | 2020-06-02 14:03:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 1,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 2,668 ms |
コンパイル使用メモリ | 192,084 KB |
最終ジャッジ日時 | 2025-01-10 20:33:21 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s; cin>>s; int ans=0; for(auto&&i:s){ if(i<'0'||i>'9')continue; ans+=i-'0'; } cout<<ans<<"\n"s; }