結果
| 問題 | No.509 塗りつぶしツール | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-04-28 23:34:01 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 324 bytes | 
| コンパイル時間 | 235 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,496 KB | 
| 最終ジャッジ日時 | 2024-09-13 18:38:48 | 
| 合計ジャッジ時間 | 2,301 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 WA * 16 | 
ソースコード
def main():
    n = str(input())
    ans = 0
    for num in n:
        if num == '1' or num == '2'or num == '3' or num == '5' or num == '7':
            ans += 2
        elif num == '0' or num == '4' or num == '6' or num == '9':
            ans += 3
        elif num == '8':
            ans += 4
    print(ans + 1)
main()
            
            
            
        