0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ABC120 C - Unification で閃いてみた

Posted at

abc120_1.png
abc120_2.png
abc120_3.png

分からん。
とりあえず風呂はいろ。

入ったら閃いた。

引っこ抜いて勝手にくっ付くなら、
0 , 1 をそれぞれカウントして最小値 x 2 で求められない?

Unification.py
S=input()

one = S.count("1")
zero = S.count("0")

print(min(one,zero)*2)

通った。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?