I've spent some time thinking about this problem, and for the first time of solving many questions i don't get the question itself. I somehow get the basic mechanics of this problem. But i don't know what to solve? what the question is aksing me. this is the question link[Mashmokh & Tokens](https://codeforces.me/contest/415/problem/B). I looked up at the editorial but then there's magically an assumption of k initial tokens, my thought was if i am given x tokens a day and there's some conversion for it in dollars the greedy approach would be to sell all the tokens to maximize profit, what's wrong with my thinking? ciao↵
↵
↵
This is my code btw. ↵
↵
~~~~~↵
#Codeforces 415-B {Mashmokh & Tokens}↵
n,a,b=map(int, input().split())↵
x=list(map(int, input().split()))↵
k=[]↵
for xi in x:↵
k.append(xi*a//b)↵
↵
#print(k)↵
↵
for i in range(n):↵
g=(k[i]*(b))//a ↵
↵
print(x[i]-g,end=" ")↵
~~~~~↵
↵
↵
↵
This is my code btw. ↵
↵
~~~~~↵
#Codeforces 415-B {Mashmokh & Tokens}↵
n,a,b=map(int, input().split())↵
x=list(map(int, input().split()))↵
k=[]↵
for xi in x:↵
k.append(xi*a//b)↵
↵
#print(k)↵
↵
for i in range(n):↵
g=(k[i]*(b))//a ↵
↵
print(x[i]-g,end=" ")↵
~~~~~↵
↵



