![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oj笔记
pidao
这个作者很懒,什么都没留下…
展开
-
PAT_a1065 A+B and C (64bit)
目录题目描述解题思路需要注意的地方参考题目描述作者: HOU, Qiming单位: 浙江大学时间限制: 400 ms内存限制: 64 MB代码长度限制: 16 KBGiven three integers A, B and C in [−263,263], you are supposed to tell whether A+B>C.Input Specificat...原创 2019-03-25 10:54:14 · 166 阅读 · 0 评论 -
PAT_b1008:数组元素循环右移问题
目录题目描述解题思路需要注意的地方题目描述一个数组A中存有N(>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥0)个位置,即将A中的数据由(A0A1⋯AN−1)变换为(AN−M⋯AN−1A0A1⋯AN−M−1)(最后M个数循环移至最前面的M个位置)。如果需要考虑程序移动数据的次数尽量少,要如何设计移动的方法?输入格式...原创 2019-03-15 17:10:02 · 188 阅读 · 0 评论 -
PAT_a1046 Shortest Distance
目录Description解题思路需要注意的地方Description作者: CHEN, Yue单位: 浙江大学时间限制: 200 ms内存限制: 64 MB代码长度限制: 16 KBThe task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to...原创 2019-03-21 22:21:53 · 152 阅读 · 0 评论