没头脑同学求助

P11362 [NOIP2024] 遗失的赋值

xiaozhangma @ 2024-12-07 21:41:41

官方样例2中,第4组数据v=2,本人理解答案应该只包含2、3这两个质因数(因为个限制对答案的贡献只可能是2、3、4),而答案是129600,显然有质因数5,求问


by xiaozhangma @ 2024-12-07 21:42:24

打漏了一个字,是“每”个限制


by TZQ1129 @ 2024-12-07 21:46:27

应该是六


by xiaozhangma @ 2024-12-07 21:52:02

什么意思


by xiaozhangma @ 2024-12-07 21:53:05

@TZQ1129麻烦详细讲讲


by Kotobuki_Tsumugi @ 2024-12-08 10:18:56

@xiaozhangma 答案太大了,取模导致的。


by TZQ1129 @ 2024-12-08 10:42:50

AC,发个代码给我


by xiaozhangma @ 2024-12-08 14:11:59

@Kotobuki_Tsumugi好的,感谢


by psgqwq @ 2024-12-11 19:40:43

@Kotobuki_Tsumugi 哥们,别瞎说。


|