結果

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

ソースコード

diff #

n = input().strip()
digit_ops = {
    '0': 3,
    '1': 3,
    '2': 3,
    '3': 3,
    '4': 2,
    '5': 3,
    '6': 4,
    '7': 2,
    '8': 4,
    '9': 2
}
total = 0
for c in n:
    total += digit_ops[c]
print(total)
0