自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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&lt.

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关注的人

提示
确定要删除当前文章?
取消 删除