You are viewing a single comment's thread. Return to all comments →
My code is almost similar to yours. But there are apparently problems with mine. Could you please point them out?
n = int(raw_input().strip()) score = list(map(int, raw_input().strip().split(' '))) hb, lb = 0, -1 a = score[0] for b in score: if (b>a): a = b hb +=1 for c in score: if (c<=a): a = c lb +=1 print hb, print lb
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
My code is almost similar to yours. But there are apparently problems with mine. Could you please point them out?