hack掉很多题解

P2704 [NOI2001] 炮兵阵地

hgckythgcfhk @ 2023-11-13 10:14:36

输入:

1 10
PPPPPPPPPP

输出:

4

是不是4不重要,反正不可能是0

以下题解输出0

https://www.luogu.com.cn/blog/bilibiliboom/solution-p2704

https://www.luogu.com.cn/blog/Agemt-shadiao/noi2001-pao-bing-zhen-di

https://www.luogu.com.cn/blog/henryhe/solution-p2704

https://www.luogu.com.cn/blog/klc/solution-p2704

https://www.luogu.com.cn/blog/xcgzyouxiao/solution-p2704

只测了第一页的题解,后面几页可能还有


by Larryyu @ 2023-11-13 11:15:00

@Maxmilite


by Maxmilite @ 2023-11-14 20:37:45

@hgckythgcfhk @Larryyu Hack 数据已添加,题解还请联系题解审核管理员撤下。


by Lizichen_licis @ 2024-03-17 20:31:12

实际上加个特判就行了


by ScourgeBringer @ 2024-03-21 16:23:21

请加入如下特判

if (n == 1)
{
    for (int i = 1; i <= m; i += 3) ans++;
    cout << ans;
    return 0;
}

|