Comments

raw_input() in python reads a hole line, not just a "token". so you should use

limit, Smax = map(int, raw_input().split())
scores = map(int, raw_input().split())
for score in scores:
 bla bla bla...
On tunyashCodeforces Round #176, 13 years ago
0

Time limit for Div2 B is too long :( even brute force from k to 1 can pass :(

Got an Unsuccessful Hacking Attempt when trying to hacking one of those brute force solution :(