結果
| 問題 | 
                            No.509 塗りつぶしツール
                             | 
                    
| コンテスト | |
| ユーザー | 
                             lam6er
                         | 
                    
| 提出日時 | 2025-04-16 00:23:29 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 281 bytes | 
| コンパイル時間 | 255 ms | 
| コンパイル使用メモリ | 82,508 KB | 
| 実行使用メモリ | 53,932 KB | 
| 最終ジャッジ日時 | 2025-04-16 00:24:45 | 
| 合計ジャッジ時間 | 2,185 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | WA * 27 | 
ソースコード
# Define the number of fill operations required for each digit
fill_operations = {
    '0': 2,
    '1': 3,
    '2': 3,
    '3': 3,
    '4': 3,
    '5': 3,
    '6': 4,
    '7': 3,
    '8': 3,
    '9': 3,
}
n = input().strip()
total = sum(fill_operations[c] for c in n)
print(total)
            
            
            
        
            
lam6er