結果
問題 |
No.9011 数字を全て足そう(数字だけ)
|
ユーザー |
![]() |
提出日時 | 2023-09-15 18:04:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 1,918 ms |
コンパイル使用メモリ | 192,832 KB |
最終ジャッジ日時 | 2025-02-16 22:35:50 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { // 入力 string S; cin >> S; // 計算 int sum = 0; for (const auto& c : S) { sum += c - '0'; } // 出力 cout << sum << endl; }