Q
Q
qetuo32020-08-02 21:39:42
Python
qetuo3, 2020-08-02 21:39:42

Why doesn't test 4 pass?

fin_name = 'input.txt'
fout_name = "output.txt"

with open (fin_name) as fin:
  a =list(map(int, fin.readline().split(' ')))					
                      
MAX = max(a)

with open (fout_name, 'w') as fout:
  if MAX<94:
    fout.write(str('Error'))
  elif MAX>727:
    fout.write(str('Error'))
  else:
    fout.write(str(MAX))


Why doesn't the 4th test pass in the "Three fat men" problem on the acmp.ru website?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
milssky, 2020-08-02
@qetuo3

Obviously, it's about the limits of your range. But should we go see the text of the problem ourselves or guess?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question