What's the difference?

Revision en1, by dkyu021, 2021-05-04 23:16:49

Hello Codeforces,

I have one doubt, are these statements not same ?

Statement 1: int up = x/y;

Statement 2: int up = floor((float)x/(float)y);

I might be doing a very naive or silly mistake but I'm not able to see the difference.

Question is like:

Link to problem (Total Pairs): Question Link

Question

My solutions to problem:

Wrong Solution
Accepted Solution

Thanking You all in advance!!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dkyu021 2021-05-04 23:16:49 2220 Initial revision (published)