Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Pallove's blog

By Pallove, history, 3 years ago, In English

Tips and Tricks by Pallove

Floor :

int x,y;
    int ans = Floor(x/y) = x/y;

Ceiling :

int x,y;
     int ans = Ceiling(x/y) = (x + y - 1)/y;

Full text and comments »

  • Vote: I like it
  • -27
  • Vote: I do not like it

By Pallove, history, 4 years ago, In English
  • Vote: I like it
  • -20
  • Vote: I do not like it