結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
Kaz_nl
|
| 提出日時 | 2017-08-11 11:38:40 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 467µs | |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 74,476 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-15 02:28:31 |
| 合計ジャッジ時間 | 1,913 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int sum = 0;
cin >> s;
for (auto c : s) {
if (isdigit(c)) {
sum += c - '0';
}
}
cout << sum << endl;
}
Kaz_nl