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

MciprianM's blog

By MciprianM, 14 years ago, In English
Given two large natural numers A and B ( A, B >= 264 ) find their quotient q and remainder r, where A = B * q + r,
0 <=  r < B. How do you solve this problem? Please post comments ( solution, code ). I mention I would be interested in seeing the code for the schoolbook algorithm and in seeing what would be the simplest way to code division without using libraries for Big Integers.
  • Vote: I like it
  • 0
  • Vote: I do not like it