結果
| 問題 | 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 |
ソースコード
/* ========================================================================
$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;
}
CreativeGP1