結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
CreativeGP1
|
| 提出日時 | 2018-03-04 23:21:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 563 bytes |
| コンパイル時間 | 482 ms |
| コンパイル使用メモリ | 55,068 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-17 22:16:48 |
| 合計ジャッジ時間 | 859 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
/* ========================================================================
$File: $
$Date: $
$Revision: $
$Creator: Creative GP $
$Notice: (C) Copyright 2017 by Creative GP, Inc. All Rights Reserved. $
======================================================================== */
#define CPP
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
string s;
cin >> s;
int ans = 0;
for (int i = 0; i < 9; i++) {
ans += (s[i]=='0')?10:(s[i]-'0');
}
cout << ans << endl;
}
CreativeGP1