結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
![]() |
提出日時 | 2025-03-31 17:53:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 83,092 KB |
実行使用メモリ | 54,004 KB |
最終ジャッジ日時 | 2025-03-31 17:55:14 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 25 |
ソースコード
# Predefined costs for each digit based on their structure cost = { '0': 2, '1': 3, '2': 4, '3': 4, '4': 3, '5': 4, '6': 4, '7': 3, '8': 2, '9': 3 } n = input().strip() total = 0 for c in n: total += cost[c] print(total)