What's the difference?

Правка en1, от 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!!!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dkyu021 2021-05-04 23:16:49 2220 Initial revision (published)