結果
| 問題 |
No.656 ゴルフ
|
| コンテスト | |
| ユーザー |
C. S.
|
| 提出日時 | 2019-03-14 19:25:26 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 1,082 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 00:50:50 |
| 合計ジャッジ時間 | 1,014 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include <stdio.h>
int main()
{
int res = 0;
for(int i=0; i<9; i++){
char c;
scanf("%c", &c);
int s = c - '0';
if(s == 0){
res += 10;
} else {
res += s;
}
}
printf("%d\n", res);
return 0;
}
C. S.