結果

問題 No.509 塗りつぶしツール
ユーザー gew1fw
提出日時 2025-06-12 15:36:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,892 KB
実行使用メモリ 53,984 KB
最終ジャッジ日時 2025-06-12 15:36:49
合計ジャッジ時間 2,344 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

digit_map = {
    '0': 2,
    '1': 3,
    '2': 2,
    '3': 2,
    '4': 3,
    '5': 2,
    '6': 4,
    '7': 3,
    '8': 4,
    '9': 3
}

n = input().strip()
total = 0
for c in n:
    total += digit_map[c]
print(total)
0