結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
29da164
|
| 提出日時 | 2020-07-23 09:00:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 569 ms |
| コンパイル使用メモリ | 68,848 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 17:07:00 |
| 合計ジャッジ時間 | 1,133 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include <iostream>
#include <math.h>
int main(void){
std::string a;
int x[9]={0,0,0,0,0,0,0,0,0};
int y=0;
std::cin >> a;
const char* ca = a.c_str();
for(int i=0;i<9;i++){
x[i]=(int)ca[i]-48;
//std::cout << x[i] << std::endl;
if(x[i]==0) x[i]=10;
y+=x[i];
}
std::cout << y << std::endl;
}
29da164