LoginSignup
0
0

More than 3 years have passed since last update.

paiza D「一番小さい値」でのミス例(python)

Last updated at Posted at 2021-02-25

〈ミス1〉

input_line = list(map(int,input().split()))
print(min(input_line))

出力 10
エラー なし

〈ミス2〉

try:
    N = int(input())
    a = []

except EOFError:
    pass

for i in range(N):
    a.append(int(input()))
print(a)

出力 なし
エラー Runtime error
Traceback (most recent call last):
File "Main.py", line 12, in
a.append(int(input()))
EOFError: EOF when reading a line

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