結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2018-03-18 11:30:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 67,268 KB |
| 最終ジャッジ日時 | 2025-01-05 09:18:30 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main()
{
string scores;
cin >> scores;
int sum = 0;
for (char score : scores) sum += (score == '0') ? 10 : (score - '0');
cout << sum << endl;
return 0;
}
neko_the_shadow