結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー souta-1326
提出日時 2020-04-09 19:21:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 62,756 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 20:17:33
合計ジャッジ時間 1,412 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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