![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索专题
文章平均质量分 63
yuson_g
这个作者很懒,什么都没留下…
展开
-
D - 封印之门
蒜头君被暗黑军团包围在一座岛上,所有通往近卫军团的路都有暗黑军团把手。幸运的是,小岛上有一扇上古之神打造的封印之门,可以通往近卫军团,传闻至今没有人能解除封印。 封印之门上有一串文字,只包含小写字母,有 k 种操作规则,每个规则可以把一个字符变换成另外一个字符。经过任意多次操作以后,最后如果能把封印之门上的文字变换成解开封印之门的文字,封印之门将会开启。 蒜头君战斗力超强,但是不擅计算,请你帮忙蒜头君计算至少需要操作多少次才能解开封印之门。 Sample Input abcd dddd 3 a b b c原创 2021-03-20 19:04:32 · 211 阅读 · 0 评论 -
B - 程序设计:引爆炸弹
在一个 n×m的方格地图上,某些方格上放置着炸弹。手动引爆一个炸弹以后,炸弹会把炸弹所在的行和列上的所有炸弹引爆,被引爆的炸弹又能引爆其他炸弹,这样连锁下去。 现在为了引爆地图上的所有炸弹,需要手动引爆其中一些炸弹,为了把危险程度降到最低,请算出最少手动引爆多少个炸弹可以把地图上的所有炸弹引爆。 输入格式 第一行输两个整数 n,m,用空格隔开。 接下来 n 行,每行输入一个长度为 m的字符串,表示地图信息。0表示没有炸弹,1表示炸弹。 数据约定: 对于 60% 的数据:1≤n,m≤100; 对于 100%的原创 2021-03-20 17:02:54 · 167 阅读 · 0 评论 -
A - Books Exchange (hard version)(传递书籍一个轮回所需天数)
The only difference between easy and hard versions is constraints. There are n kids, each of them is reading a unique book. At the end of any day, the i-th kid will give his book to the pi-th kid (in case of i=pi the kid will give his book to himself). It原创 2021-03-20 16:31:59 · 143 阅读 · 0 评论 -
J - Nightmare(携带炸弹的噩梦)
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb explodes. The initial exploding time of the bomb is set to 6 minutes. To preve原创 2021-03-20 16:27:33 · 104 阅读 · 0 评论