Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

d891320478's blog

By d891320478, 14 years ago, In English

Don't use (int)log10(n)+1 to count the length of n.

It may cause error because of accuracy.

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it