上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 42 下一页
摘要: #include<iostream> #include<cstring> using namespace std; #define maxn 100005 int par[2*maxn],height[2*maxn]; int Find(int x){ if(x==par[x])return x; 阅读全文
posted @ 2021-12-10 21:58 智人心 阅读(28) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; #define maxn 30005 int par[maxn],n,m,k[505],data[505][30005]; bool visit[maxn]; int findPar( 阅读全文
posted @ 2021-12-07 21:27 智人心 阅读(34) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; struct node{ int v,b; }nd[25]; int cmp(node nd1,node nd2){ if(nd1.v>nd2.v)return 1; return 阅读全文
posted @ 2021-12-05 22:28 智人心 阅读(30) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> #include<cstring> using namespace std; int main(){ char data[55]; while(scanf("%s",data)==1&&strcmp(data,"#")){ 阅读全文
posted @ 2021-12-05 21:45 智人心 阅读(24) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; int main(){ int data[150]; int t,n,cnt,i,j,p,pos; scanf("%d",&t); while(t--){ scanf("%d",&n) 阅读全文
posted @ 2021-12-05 21:35 智人心 阅读(27) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include<cstring> using namespace std; int main(){ char a[80],d[]={'/','\\','.','|','_'}; int len; double sum; whil 阅读全文
posted @ 2021-12-05 20:52 智人心 阅读(31) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; int main(){ char a[260],key[20],*p,old; int i; while(scanf("%s",a)==1){ while(scanf("%s",key 阅读全文
posted @ 2021-12-05 20:10 智人心 阅读(22) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> #include<cstring> using namespace std; struct node{ char result[305][55]; int len; }; node r[305]; char a[105][ 阅读全文
posted @ 2021-12-05 19:34 智人心 阅读(28) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; int m,n,num; bool visit[100][100]; char data[100][100],ch; void dfs(int direction,int i,int 阅读全文
posted @ 2021-12-05 18:47 智人心 阅读(27) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<algorithm> using namespace std; int main(){ int i,n,len[105],minLen; char a[105][105]; while(scanf("%d", 阅读全文
posted @ 2021-12-05 18:08 智人心 阅读(24) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 42 下一页