結果

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

ソースコード

diff #

# Predefined fill counts for each digit from 0 to 9
fill_counts = [2, 3, 3, 3, 4, 3, 4, 3, 2, 3]

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