Блог пользователя xyf007

Автор xyf007, история, 3 года назад, По-английски

I searched printf on Wikipedia, and it says I should use std::printf("%td", x);. However it doesn't work on Codeforces. When I used it, it only printed two English characters t and d. See this submission 114157818. Also I wish to know how to print a std::size_t number. std::printf("%zu") doesn't work, either. Does it mean I have to cast it to int or use std::cout?

  • Проголосовать: нравится
  • +34
  • Проголосовать: не нравится