結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
|
提出日時 | 2019-07-22 13:53:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-23 18:36:03 |
合計ジャッジ時間 | 2,143 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
n = input() d = {'0':1, '1':0, '2':0, '3': 0, '4':1, '5':0, '6':1, '7':0, '8':2, '9':1} x = 1 y = 2 x += len(n) * 2 for i in n: x += d[i] y += len(n) for i in n: y += d[i] * 2 print(min(x, y))