solution.cpp 221 B

12345678910111213
  1. #include <iostream>
  2. #include "number_theory.hpp"
  3. int main()
  4. {
  5. int total;
  6. std::cin >> total;
  7. for (int i = 0; i < total; ++i)
  8. {
  9. std::cout << i << " : " << nt::fib(i) % nt::mod << std::endl;
  10. }
  11. }