結果
問題 | No.656 ゴルフ |
ユーザー |
![]() |
提出日時 | 2018-03-10 14:35:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 182 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 09:47:52 |
合計ジャッジ時間 | 856 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <stdio.h> int main(void) { int score = 0; for (int i = 1;i <= 9;i++) { int S; S = getchar() - '0'; if (S) score += S; else score += 10; } printf("%d",score); }