摘要: 题目链接:Grid game 题目原文 You are given a 4x4 grid. You play a game — there is a sequence of tiles, each of them is either 2x1 or 1x2. Your task is to conse 阅读全文
posted @ 2019-01-23 17:59 SaltyFishQF 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Game with string 题目原文 Two people are playing a game with a string 𝑠s, consisting of lowercase latin letters. On a player's turn, he should choos 阅读全文
posted @ 2019-01-23 17:50 SaltyFishQF 阅读(807) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Splitting into digits 题目原文 Vasya has his favourite number 𝑛n. He wants to split it to some non-zero digits. It means, that he wants to choose so 阅读全文
posted @ 2019-01-23 17:36 SaltyFishQF 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Shuffle'm Up 题目大意 模拟纸牌的洗牌过程,已知两个牌数相等的牌堆。求解经过多少次洗牌的过程,使牌的顺序与目标顺序相同。 思路 直接模拟,主要是字符串的操作。问题是,如何判断出不可能的情况。这个题好像除了找是否会出现无限循环以外找不到更好的判断方法了。 如果是用字符数组来写的话 阅读全文
posted @ 2019-01-23 17:29 SaltyFishQF 阅读(167) 评论(0) 推荐(0) 编辑