結果
問題 | No.656 ゴルフ |
ユーザー |
|
提出日時 | 2018-03-02 23:07:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 563 ms |
コンパイル使用メモリ | 65,052 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 06:05:26 |
合計ジャッジ時間 | 1,144 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 6 |
ソースコード
#include <iostream>using namespace std;int main(){string input;int sum=0;for (int index=0; index < 9; index++){cin >> input;if (input == "0"){sum += 10;} else{sum += stoi(input);}}cout << sum << endl;return 0;}