Getting a WA even though i have the correct solution

Hi there!
The JULY19B competition is my first competition on codechef and i’d like to kno why i am getting a WA even though i have (what i believe to be) a right solution.
If it is allowed i can share my code, just say so in the comments.
I was faced with EOFErrors for every input i gave and the only way i could fix it was by giving my own custom inputs.
Even after giving different cases than the example ones, i stilll get a WA.
Can somebody please help me out.

Thanks.

1 Like

In which question you got stuck .

1 Like

The first one LOL(the chef invests in coins one)

U haven’t done any question on Codechef yet
try to submit solution of any previous contest so to become familiar with format of i/o

1 Like