fork download
  1. num = int(input())
  2.  
  3. if num != 1 and num != 2:
  4. print('role error')
  5.  
  6. else:
  7. score = int(input())
  8. if score>100 or score<0:
  9. print('score error')
  10. else:
  11. if num==1 and 60<=score<=100:
  12. print('pass')
  13. elif num==1:
  14. print('fail')
  15.  
  16. if num==2 and 70<=score<=100:
  17. print('pass')
  18. elif num==2:
  19. print('fail')
Success #stdin #stdout 0.04s 9784KB
stdin
1
60
stdout
pass