結果

問題 No.656 ゴルフ
ユーザー Konton7
提出日時 2020-01-13 23:01:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 2,000 ms
コンパイル使用メモリ 192,784 KB
最終ジャッジ日時 2025-01-08 17:49:50
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main(){
    
    string s;
    cin >> s;
    int score = 0;
    
    for (char x : s){
        score += ( (x == '0')  ? 10 : x - '0' );
    }
    cout << score << endl;
    return 0;

    
}
0