ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2012. About Grisha N.

Show all messages Hide all messages

a=int(input())
tasks_left=12-a
if tasks_left*45<=240:
    print('TRUE')
else:
    print('FALSE')
Re: Python 3.4: Why my solution is wrong? Mahilewets 19 Jul 2017 14:35
Because you should output "YES" /"NO" ,  not "TRUE" /"FALSE"


Edited by author 21.07.2017 10:33
but it doesnt work.
a=int(input('input solved task:'))
tasks_left=12-a
if tasks_left*45<=240:
    print('YES')
else:
    print('NO')
Re: Python 3.4: Why my solution is wrong? Mahilewets 21 Jul 2017 11:37
Please look what is your output
http://ideone.com/9Nr0UJ

You should output only YES/NO
Thanks. Now it's work.
i've changed from
a=int(input('input solved task:'))
to
a=int(input())