結果
問題 | No.656 ゴルフ |
ユーザー | Eclair1015 |
提出日時 | 2018-07-10 09:31:01 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 448 ms |
コンパイル使用メモリ | 60,296 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-26 13:12:30 |
合計ジャッジ時間 | 1,393 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,376 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
#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; }