結果

問題 No.509 塗りつぶしツール
ユーザー gew1fw
提出日時 2025-06-12 15:31:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 54,308 KB
最終ジャッジ日時 2025-06-12 15:32:56
合計ジャッジ時間 2,479 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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