結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-19 17:58:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 1,704 ms |
| コンパイル使用メモリ | 167,268 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-14 03:24:00 |
| 合計ジャッジ時間 | 1,922 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 6 |
ソースコード
#include <bits/stdc++.h>
int main()
{
char scores[9];
int score_sum=0;
std::cin >> scores;
for(int i=0;i<9;i++){
int si = scores[i]-'0';
if(si==0)
score_sum += 10;
else
score_sum += si;
}
std::cout << score_sum << std::endl;
}