結果

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

ソースコード

diff #

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