第一题用搜索,超时了,待补 更新第一题思路 dfs + 剪枝,首先确定 n的最后一位数字肯定是9,为什么呢,因为 任意两个相邻的数肯定互为质数(gcd=1),所以 n 的末尾肯定是9,这样n+1产 ...
Panda and PP Milk 分 时间限制: ms 内存限制: MB PP milk 盆盆奶 is Pandas favorite. They would line up to enjoy it as show in the picture. On the other hand, they could drink in peace only if they believe that the ...
2021-04-09 14:36 0 569 推荐指数:
第一题用搜索,超时了,待补 更新第一题思路 dfs + 剪枝,首先确定 n的最后一位数字肯定是9,为什么呢,因为 任意两个相邻的数肯定互为质数(gcd=1),所以 n 的末尾肯定是9,这样n+1产 ...
了,开始没几分钟点进去,就有大佬已经AC了,瑟瑟发抖~~) 因为准备考研浙大才准备的PAT甲级考试,但 ...
7-1 Forever (20 分) 7-2 Merging Linked Lists (25 分) 7-3 Postfix Expression (25 分) 7-4 D ...
7-1 Forever (20 分) 时间限制:3000 ms 内存限制:64 MB "Forever number" is a positive integer A with K digits, ...
2020-9-5 刚考完PAT 最后半小时手机居然关机断网了!!! 题目描述可以参考2020年PAT秋原题 第一题(奶牛题) 好坑,我想的是找出单调序列,从小到大依次赋值,序列最大的点先放着,之后根据两边的值确定每个最大点处的值。最后一个点wa(-3分) code1 第二题 ...
比赛链接:https://pintia.cn/market/item/1302816969611366400 7-1 多二了一点 (15分) 题解 模拟。 代码 7-2 数字之 ...
自测时间为2021年春季考试前一天下午\(5:00 \sim 8:00\)。 7-1 The Closest Fibonacci Number (20 分) The Fibonacci sequence $F_n$ is defined by $F_{n+2} = F_{n+1} + F_n ...
7-1 Prime Day (20 分) 时间限制:400 ms 内存限制:64 MB The above picture is from Sina Weibo, showing May 23 ...