結果

問題 No.509 塗りつぶしツール
ユーザー convexineqconvexineq
提出日時 2021-02-17 20:29:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-10-12 06:36:04
合計ジャッジ時間 4,220 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,232 KB
testcase_01 AC 75 ms
71,268 KB
testcase_02 AC 75 ms
71,400 KB
testcase_03 AC 78 ms
71,548 KB
testcase_04 AC 75 ms
71,232 KB
testcase_05 AC 76 ms
71,056 KB
testcase_06 AC 74 ms
71,268 KB
testcase_07 AC 77 ms
71,276 KB
testcase_08 AC 76 ms
71,320 KB
testcase_09 AC 78 ms
71,400 KB
testcase_10 AC 75 ms
71,212 KB
testcase_11 AC 77 ms
71,528 KB
testcase_12 AC 76 ms
71,216 KB
testcase_13 AC 75 ms
71,224 KB
testcase_14 AC 76 ms
71,356 KB
testcase_15 AC 76 ms
71,472 KB
testcase_16 AC 74 ms
71,360 KB
testcase_17 AC 75 ms
71,396 KB
testcase_18 AC 75 ms
71,064 KB
testcase_19 AC 75 ms
71,360 KB
testcase_20 AC 170 ms
71,344 KB
testcase_21 AC 72 ms
71,448 KB
testcase_22 AC 71 ms
71,480 KB
testcase_23 AC 70 ms
71,060 KB
testcase_24 AC 69 ms
71,504 KB
testcase_25 AC 72 ms
71,356 KB
testcase_26 AC 71 ms
71,356 KB
testcase_27 AC 70 ms
71,320 KB
testcase_28 AC 71 ms
71,572 KB
testcase_29 AC 70 ms
71,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W = [1,0,0,0,1,0,1,0,2,1]
n = input()
w = sum(W[i] for i in map(int,n)) + 1
b = len(n)
print(min(w,b)*2+max(w,b))
0