![](https://img-blog.csdnimg.cn/20201103153133653.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
PAT甲级练习
codeup
PAT
晴神笔记
柳神blog
pudding_art
这个作者很懒,什么都没留下…
展开
-
【PAT A1052】Linked List Sorting
#include <iostream> #include <algorithm> using namespace std; #define MaxSize 100000 typedef struct node{ int address; int data; int next_address; int flag; }Node; bool cmp(Node a,Node b){ if(a.flag==0||b.flag==0){ r原创 2020-11-10 22:43:37 · 93 阅读 · 0 评论 -
【PAT A1032】Sharing
代码 #include <iostream> using namespace std; #define MaxSize 100000 typedef struct node{ //int address; char data; int next_address; int flag; }Node; int main(){ Node linklist[MaxSize]; int head1,head2,num; cin>>head1原创 2020-11-10 21:42:13 · 102 阅读 · 0 评论 -
STL整理
vector/string #include <algorithm> #include <iostream> #include <vector> #include <unordered_set> #include <set> #include <string> using namespace std; int main(){ vector<int> vi; for(int i=1;i<=5;i++){原创 2020-11-10 20:36:47 · 276 阅读 · 0 评论 -
【PAT A1060】Are They Equal
整体和部分 有趣 #include <string> #include <iostream> using namespace std; /* 没考虑: a/一开始没有考虑小于0小数的情况(如果是小于0的小数的情况,后面的10的指数应该是小数点后面直到第一个不等于0的数的0的个数) b/没有考虑输入数据可能有前导0 c/长度不够有效位数在后面补0 */ int n;//精度n int main(){ //cout<<char(5)<<endl;原创 2020-11-09 20:20:12 · 90 阅读 · 0 评论