Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

why showing runtime error

$
0
0

T= int(input()) for i in range(T): n= int(input())

s=input().split()
count = 0
what = 0
for i in s:
    if i == s[0] :
        count=count+1
    elif i == s[1]:
        what = what+1

if count==what :
    print('Draw')
elif count>what :
    print(s[0])
else :
    print(s[1])

Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>