結果

問題 No.656 ゴルフ
ユーザー CreativeGP1
提出日時 2018-03-04 23:16:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 525 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 55,424 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-17 21:57:40
合計ジャッジ時間 995 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

/* ========================================================================
   $File: $
   $Date: $
   $Revision: $
   $Creator: Creative GP $
   $Notice: (C) Copyright 2017 by Creative GP, Inc. All Rights Reserved. $
   ======================================================================== */

#define CPP

#include <iostream>

using namespace std;

int main()
{
    string s;
    cin >> s;
    int ans = 0;
    for (int i = 0; i < 9; i++) {
        ans += (s[i]=='0')?10:(int)s[i];
    }
    cout << ans << endl;
}





0