1
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.

python3 配列に任意の数入れる(簡易版)

Posted at

###配列に指定する数字文だけ入力を行い配列に入れる。

n = int(input())

b = [int(input())for i in range(n)]
b.sort()

for j in range(n):
    if b[j] % 2 != 0:
        print(b[j])
b = [int(input())for i in range(n)]

この箇所が重要。

1
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
1
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?