something wrong with my modint template?

Правка en1, от Astroflexx, 2025-09-29 15:04:13

I attempted to solve this problem E — Count Sequences 2 from the recent ABC. This was my submission, using my modint template. But it received WA on 45 testcases. Replacing my template with taking mod with % passed easily (submission). Is there a bug in my modint template? Please help me out, I can't figure out any mistake. The template is taken mostly from the-tourist/algo and atcoder library.

Теги help, modint, template, bug

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Astroflexx 2025-09-29 15:04:13 763 Initial revision (published)