
补题 题解
错题本
南山芽木
这个作者很懒,什么都没留下…
展开
-
F-Sumo and Luxury Car 补题
F-Sumo and Luxury Car As we all know, Sumo has a lot of luxury cars, Maserati, Porsche, Lincoln, and so on. Countless cars are parked in his garage. He is worried about what kind of car he drives every day. Can you help him? Sumo has a total of n cars. Eve原创 2020-06-06 19:49:08 · 238 阅读 · 1 评论 -
Gym 101498B - Longest Prefix
当时虽然做出来了,但感觉还是不太懂,索性再重做一遍。 Longest Prefix 给你两个字符串 a 和 b,在对字符串 b 执行零个或多个操作后找到它们之间最长的公共前缀,在每个操作中你可以交换任意两个字母。 输入: 输入的第一行包含一个整数 t (1≤ t ≤500) ,其中 t 是测试用例的数目。 每个大小写都有一行,其中包含两个空格分隔的字符串 a 和 b。所有字符串都不是空的,只包含小写的英文字母。 每个字符串的长度不超过105个字符。 输出: 输出打印 t 行,每行包含一个整数,表示 a 和原创 2020-05-19 22:51:53 · 163 阅读 · 0 评论