結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
ykprogram
|
| 提出日時 | 2018-08-17 16:07:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 623 ms |
| コンパイル使用メモリ | 54,904 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-09 06:12:40 |
| 合計ジャッジ時間 | 1,238 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include <iostream>
#include <string>
int main(void){
int count=0;
std::string S;
std::cin >> S;
for (int i = 0; i < S.length(); i++){
if (S[i] - '0' == 0)count += 10;
else count += S[i] - '0';
}
std::cout << count<<std::endl;
return 0;
}
ykprogram