|
|
вернуться в форумgetting runtime error in test case #3. Don't know why? Works fine in IDE a=int(raw_input()) count=2 for i in range(0,a): b=str(raw_input()) if b[-4]=='+': count+=2 else: count+=1 if count==13: count+=1 print(count*100) Re: getting runtime error in test case #3. Don't know why? Works fine in IDE solved! Since the problem says names consist of Latin letters (donno if + is used in Latin names), so string matching must include '+one' rather '+' so after correction of if b[-4]=='+': to if b[-4:]=='+one': it got accepted |
|
|