結果
| 問題 | No.656 ゴルフ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-12 00:31:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-15 13:53:29 |
| 合計ジャッジ時間 | 949 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 RE * 1 |
| other | AC * 1 WA * 1 RE * 4 |
ソースコード
# coding utf-8
# https://yukicoder.me/plobrems/no/656
score = int(input())
sum = 0
score_a = [int(x) for x in list(str(score))]
for i in score_a:
if score_a[i] > 0:
sum += int(score_a[i])
elif score_a[i] == 0:
sum = sum + 10
if sum == 10:
sum = 100
print(sum)