###配列に指定する数字文だけ入力を行い配列に入れる。
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)]
この箇所が重要。
Go to list of users who liked
More than 3 years have passed since last update.
###配列に指定する数字文だけ入力を行い配列に入れる。
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)]
この箇所が重要。
Register as a new user and use Qiita more conveniently
Go to list of users who liked