- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 散列2 Hashing
散列2 Hashing#include<iostream>#include<cstdio>#include<string.h>#include<algorithm>using namespace std;#define N 100010#define M 100000int A[N]={0};int B[N]={0};bool isPrime(int n){ if(n < 2)
2017-11-21 15:41:21 225
原创 散列3 QQ帐户的申请与登陆
散列3 QQ帐户的申请与登陆#include<iostream>#include<cstdio>#include<string.h>using namespace std;#define N 100010#define M 100000struct QQ{ char Acnumber[15]; char Password[20]; int state;}A[
2017-11-19 17:29:03 399
原创 KMP
#include<stdio.h> #include<string.h>#define N 10010 void get_next(char s[], int next[]){ int j=1; next[1]=0; int k=0; while(j<strlen(s+1)) { if(k==0||s[j]==s[k])
2017-11-16 21:04:42 236
原创 冒泡排序and插入排序
#include<iostream> #include<algorithm> using namespace std;int A[100010]={0};int B[100010]={0};int Dubble_sort(int n){ int sum=0; for(int i=1;i<=n;i++) for(int j=i+1;j<=n;j++) {
2017-11-05 20:25:55 154
原创 10-排序6 Sort with Swap(0, i)
Sort with Swap(0, i)#include<iostream> #include<algorithm> using namespace std;int A[100010]={0};int judge(int n){ static int i=0; for(;i<n;i++) { if(A[i]!=...
2017-11-05 13:10:38 280
TCP&UDP&串口通信助手
2020-02-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人