結果
| 問題 | No.656 ゴルフ |
| コンテスト | |
| ユーザー |
Eclair1015
|
| 提出日時 | 2018-07-10 09:31:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 547 ms |
| コンパイル使用メモリ | 59,648 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 07:35:18 |
| 合計ジャッジ時間 | 977 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 1 WA * 5 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include<string>
using namespace std;
int main(){
int s;
int num,score=0;
cin >> s;
for (int i = 0; i < 9; i++) {
num = s % 10;
if (num == 0) {
score += 10;
} else {
score += num;
}
num /= 10;
}
cout << score << endl;
}
Eclair1015