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.

B - Ringo's Favorite Numbers AtCoder

Posted at

問題

回答

d, n = map(int, input().split())

if n == 100:
    print(101 * (100 ** d))
else:
    print(n * (100 ** d))

ポイント

N * 100 ** Dが答えになる。
Nの値で条件文を使い、Nが100のときには100で割り切れない101を使う。Nが100でなければNがそのまま使えるので、それぞれ100のD乗を掛ける。

問題がよくわからず。

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?