結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー t33f
提出日時 2018-10-05 21:10:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 54,772 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 20:11:10
合計ジャッジ時間 1,251 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() { string s; cin >> s; int ans = 0; for (char c : s) ans += c - '0'; cout << ans << endl; }
0