原文:PAT(甲级)2021年春季考试

Arithmetic Progression of Primes 分 时间限制: ms 内存限制: MB In mathematics, an arithmetic progression AP,等差数列 is a sequence of numbers such that the difference between the consecutive terms is constant. In ...

2021-04-11 11:42 0 1253 推荐指数:

查看详情

PAT甲级)2020春季考试

7-1 Prime Day (20 分) 时间限制:400 ms 内存限制:64 MB The above picture is from Sina Weibo, showing May 23 ...

Thu Apr 08 23:36:00 CST 2021 0 235
PAT甲级)2019春季考试

7-1 Sexy Primes 判断素数 一个点没过17/20分 错因:输出i-6写成了输出i,当时写的很乱,可以参考其他人的写法 修改后的代码: 7-2 Anniversary ...

Wed Sep 25 02:10:00 CST 2019 0 476
20219月(甲级)秋季PAT考试

了,开始没几分钟点进去,就有大佬已经AC了,瑟瑟发抖~~) 因为准备考研浙大才准备的PAT甲级考试,但 ...

Sun Sep 12 16:54:00 CST 2021 0 293
PAT-2022春季考试-甲级,题解

仅提供个人思路~ 题目链接:购买考试券 - PAT甲级)2022春仿真卷 (pintia.cn) 7-1 Simple Lie Detection (20 分) View Code 7-2 The First K Largest Numbers ...

Wed Mar 09 19:44:00 CST 2022 2 613
【题解】2021PAT春季甲级

【7-1 Arithmetic Progression of Primes】 筛法预处理区间内的素数 因为已知数列长度,如果知道数列第一、二个数即可求得整个数列暴力枚举前两个数,看后续是否满足{① ...

Sun Mar 14 01:01:00 CST 2021 1 334
PAT甲级)2020冬季考试自测

自测时间为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 ...

Sat Mar 13 04:41:00 CST 2021 0 353
PAT甲级)2019秋季考试

第一题用搜索,超时了,待补 更新第一题思路 dfs + 剪枝,首先确定 n的最后一位数字肯定是9,为什么呢,因为 任意两个相邻的数肯定互为质数(gcd=1),所以 n 的末尾肯定是9,这样n+1产 ...

Wed Oct 02 01:33:00 CST 2019 0 716
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM