![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
浙大PAT
zqlhehe
这个作者很懒,什么都没留下…
展开
-
1001 害死人不偿命的(3n+1)猜想 (15 point(s))
先看代码: #include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { i...原创 2019-09-04 17:46:57 · 170 阅读 · 0 评论 -
1002 写出这个数 (20 point(s))
直接看代码,注意Dev C++可能不支持 C++11,需要设置一下,参考下面链接。 https://blog.csdn.net/qq_43492703/article/details/91042595 #include <iostream> #include <string> using namespace std; /* run this program usi...原创 2019-09-04 19:12:26 · 179 阅读 · 0 评论 -
1004 成绩排名
本题思路非常简单,其实根本不需要使用结构体,也不需要排序,一边输入一遍比较大小即可,下面的代码其实较为繁琐。 #include <iostream> #include <string> #include <algorithm> using namespace std; /* run this program using the console pauser o...原创 2019-09-27 23:16:36 · 78 阅读 · 0 评论 -
6-1 单链表逆转
思路:头插法重新建立新的链表 代码:原创 2019-10-10 16:03:12 · 90 阅读 · 0 评论