結果
問題 | No.289 数字を全て足そう |
ユーザー |
![]() |
提出日時 | 2020-05-03 16:16:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 2,269 ms |
コンパイル使用メモリ | 192,036 KB |
最終ジャッジ日時 | 2025-01-10 06:14:44 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; int a = 0; cin >> s; for (int i = 0; i < (int)s.size(); i++) { if (s[i] < 65) { a += s[i] - 48; } } cout << a << endl; }