fork download
  1. n=int(input())
  2. d=sorted([*map(int,input().split())])
  3. l=d[0];s=1
  4. for i in d:
  5. if l*2<i:s+=1;l=i
  6. print(s)
Success #stdin #stdout 0.04s 9792KB
stdin
1
1214
stdout
1