fork(1) 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.03s 9772KB
stdin
3
1000 2000 3000
stdout
2