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 5 years have passed since last update.

pythonでatcoder(ABC133 A) 

Posted at

問題文はこちら
https://atcoder.jp/contests/abc133/tasks/abc133_a

標準入力で N、A、Bを取得し
N*AとBを比較、少ない方を表示する。

n,a,b = map(int,input().split())
標準入力を取得
c = n*a
if c >= b:
print(b)
else:
print(c)

最初、間違えて大きい方を出すように指定しまって、WA出してしまった。
凡ミス注意!
1日少しずつでも解いて、あとを残すこととしよう

0
0
2

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?