結果

問題 No.509 塗りつぶしツール
ユーザー mlihua09mlihua09
提出日時 2020-09-15 02:19:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 86,628 KB
実行使用メモリ 71,228 KB
最終ジャッジ日時 2023-09-04 01:26:11
合計ジャッジ時間 3,839 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,196 KB
testcase_01 AC 76 ms
71,192 KB
testcase_02 AC 77 ms
70,924 KB
testcase_03 AC 76 ms
70,676 KB
testcase_04 AC 75 ms
71,000 KB
testcase_05 AC 76 ms
70,628 KB
testcase_06 AC 75 ms
71,160 KB
testcase_07 AC 75 ms
70,680 KB
testcase_08 AC 75 ms
70,864 KB
testcase_09 AC 75 ms
71,212 KB
testcase_10 AC 77 ms
70,972 KB
testcase_11 AC 76 ms
71,096 KB
testcase_12 AC 74 ms
71,120 KB
testcase_13 AC 75 ms
71,148 KB
testcase_14 AC 76 ms
70,824 KB
testcase_15 AC 74 ms
70,944 KB
testcase_16 AC 75 ms
70,940 KB
testcase_17 AC 75 ms
71,152 KB
testcase_18 AC 74 ms
71,216 KB
testcase_19 AC 77 ms
70,928 KB
testcase_20 AC 75 ms
70,828 KB
testcase_21 AC 74 ms
71,172 KB
testcase_22 AC 75 ms
71,172 KB
testcase_23 AC 77 ms
71,228 KB
testcase_24 AC 76 ms
70,940 KB
testcase_25 AC 77 ms
71,044 KB
testcase_26 AC 76 ms
70,828 KB
testcase_27 AC 74 ms
71,000 KB
testcase_28 AC 75 ms
71,052 KB
testcase_29 AC 76 ms
71,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


n = input()

x = 1 + n.count('0') + n.count('4') + n.count('6') + n.count('8') * 2 + n.count('9')

print(min(2 * len(n) + x, 2 * x + len(n)))
0