結果

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

ソースコード

diff #

n = input().strip()

total = 0
for c in n:
    d = int(c)
    if d == 0:
        total += 2
    elif d == 1:
        total += 3
    elif d == 2:
        total += 3
    elif d == 3:
        total += 3
    elif d == 4:
        total += 2
    elif d == 5:
        total += 3
    elif d == 6:
        total += 4
    elif d == 7:
        total += 3
    elif d == 8:
        total += 4
    elif d == 9:
        total += 3

print(total)
0