diff --git a/CodeForces python/Cards.py b/CodeForces python/Cards.py new file mode 100644 index 0000000..ab450a9 --- /dev/null +++ b/CodeForces python/Cards.py @@ -0,0 +1,15 @@ +#Author:harshal_509 +from math import * +for _ in range(1): + n=int(input()) + a=list(map(int,input().split())) + b=[] + for i in range(n): + b.append([a[i],i+1]) + b.sort() + i=0 + j=n-1 + while(i