ABC120 C - Unification で閃いてみた
1673 ワード
分からん。
とりあえず風呂はいろ。
入ったら閃いた。
引っこ抜いて勝手にくっ付くなら、
0 , 1 をそれぞれカウントして最小値 x 2 で求められない?
Unification.py
S=input()
one = S.count("1")
zero = S.count("0")
print(min(one,zero)*2)
通った。
Author And Source
この問題について(ABC120 C - Unification で閃いてみた), 我々は、より多くの情報をここで見つけました https://qiita.com/AKpirion/items/bf0f5b1c84fc77f4b5da著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .