摘要:
原题链接 题解 1.身份证号长度必须为18,且均为数字 2.如果申请人身份证合法,且身体状况为1,就把他放进ans2,(申请顺序) 3.身份证一定不同,姓名可能相同 4.得到口罩的输出是发放顺序 code #include<bits/stdc++.h> using namespace std; ma 阅读全文
posted @ 2024-04-19 18:33
纯粹的
阅读(50)
评论(0)
推荐(0)
摘要:
原题链接 题解 1.把输出直接看成一个向量整体存在map里 2.如果两个向量 \(a>b\) 代表a的字典序比b大 code #include<bits/stdc++.h> using namespace std; int vis[100005]={0}; int dlx[100005]={0}; 阅读全文
posted @ 2024-04-19 15:18
纯粹的
阅读(65)
评论(0)
推荐(0)
摘要:
原题链接 题解 说用k种颜色, 没说用少于k种 code #include<bits/stdc++.h> using namespace std; vector<int> G[505]; int vis[505]={0}; int color[505]={0}; int v,e,k,n; int s 阅读全文
posted @ 2024-04-19 14:15
纯粹的
阅读(10)
评论(0)
推荐(0)
摘要:
原题链接 题解 找到终点,然后终点往前移,起点往后移,奇数时输出终点所在位置..直到起点终点重合,这时输出尾节点是-1 code #include<bits/stdc++.h> using namespace std; struct node { int data,next,from; }a[100 阅读全文
posted @ 2024-04-19 13:55
纯粹的
阅读(34)
评论(0)
推荐(0)
摘要:
原题链接 题解 1.后面的列车排到前面最小的比自己大的列车后面 code #include<bits/stdc++.h> using namespace std; int len=0; int a[100005]={0}; int main() { int n; cin>>n; fill(a, a 阅读全文
posted @ 2024-04-19 12:50
纯粹的
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号