2010-08-03から1日間の記事一覧
Phone numbers最後以外は2個ずつに区切れば良い。 n=input() x=raw_input() y="" for i in range(n): y+=x[i] if i%2==1 and i
IQ test n=input() x=map(int,raw_input().split()) e=[]; o=[] for i in range(n): if x[i]%2==0: e+=[i+1] else: o+=[i+1] if len(e)==1: print e[0] if len(o)==1: print o[0]