結果
| 問題 | No.509 塗りつぶしツール | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-04-28 23:17:04 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 328 bytes | 
| コンパイル時間 | 92 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-09-13 18:33:12 | 
| 合計ジャッジ時間 | 1,875 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 WA * 16 | 
ソースコード
def main():
    n = str(input())
    ans = 0
    for num in n:
        num = int(num)
        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()
            
            
            
        