- 博客(3)
- 收藏
- 关注
原创 PAT A1112 Stucked Keyboard (20 分)
#include<bits/stdc++.h>using namespace std;int n,numm,ccd,post[100001],ins[100001],dd[100001],a,b,c,d;char s[1001];map<char,int>mp,meet1,inq,inq2;struct node{ char c1;int w1;friend bool operator < (node aa,node bb){ return aa.w1<.
2021-09-05 10:43:32
92
原创 PAT 1127. ZigZagging on a Tree (30)-甲级(简洁易懂)
#include<bits/stdc++.h>using namespace std;int n,post[100001],in[100001],dd[100001],a,b,c,d;struct node{ node *lchild,*rchild; int deep; int data;};node *newnode(int yuy){ node *Node=new node; Node->data=yuy; Node->lchild=NULL; No.
2021-09-04 20:51:56
92
原创 PAT1136 A Delayed Palindrome (20 分)题解
简单模拟题,注意进位操作#include<bits/stdc++.h>using namespace std;int n,m;int a[5000],b[5000],cntt,ll,inq1[5000],inq2[5000];string s;bool pq(){ for(int i=0;i<(ll)/2;i++){ if(a[i]!=a[ll-1-i])return 0; } return 1;}int main(){cin&g...
2021-09-04 10:01:40
67
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人