Code Festival A If you cannot solve this by 友利奈緒

import sys
for s in sys.stdin:
    a=list(map(int,s.split()))
    print(['Fail','Pass'][a[1]>sum(a[1:])/a[0]/2])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page