自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 快速乘

#include<iostream>using namespace std;#define ll long longll fastMul(ll a,ll b,ll mod){ ll ans=0; while(b) { if(b&1) { ans=(ans+a)%mod; } a=(a*2)%mod; b>>=1; } re...

2020-03-25 22:19:22 105

原创 快速幂模板

#include <iostream>#include <cstdio>using namespace std;typedef long long ll;ll QuickPow(ll a, ll b, ll mod) { ll ans = 1; while (b) { if (b & 1) ans = (ans * a) % ...

2020-03-25 21:43:29 136

原创 售票处的服务系统

#include<iostream>using namespace std;#define MAXSIZE 100int snum[MAXSIZE];//已订票的客户typedef struct{ string name;//客户姓名 int num;//订票额 int number;//座位号}ElemType1;//预约登记的客户typedef struct...

2019-12-16 13:42:45 449 1

原创 最小生成树问题

#include<bits/stdc++.h>using namespace std;#define il inlineil int read(){ int x=0,f=1;char c=getchar(); while(c<'0'||c>'9'){if(c=='-') f=-1;c=getchar();} while(c>='0'&&amp...

2019-12-16 13:41:58 259

原创 药店的药品销售统计系统

#include <iostream>#include <algorithm>using namespace std;#define MAXSIZE 1000typedef struct node{ string num; /*药品编号*/ char name[10]; /*药品名称*/ float price; /*药品单价*/ i...

2019-12-16 13:40:46 2101 2

原创 校园导游咨询

#include <iostream>using namespace std;#define MAXSIZE 100#include<queue>#include<stack>typedef struct{ string name;//景点名称; int id;//代号 string Introduction;//简介}ElemType;ty...

2019-12-16 13:40:07 297

原创 哈夫曼编码/译码系统

#include<iostream>using namespace std;#include<cstdlib>#include<cstring>#define MAX 100000000 /*定义一个无限大的值*/#include<map>int m,n;typedef struct { char letter...

2019-12-16 13:39:24 738 3

原创 停车场管理

#include<iostream>using namespace std;#define MAXSIZE 2typedef struct{ int id; string type;//汽车到达或者离开 string number;//车牌号 string arrivetime;//汽车到达的时间 string entertime;//汽车...

2019-12-16 13:38:27 326 1

原创 单位员工通讯录管理系统

#include<iostream>using namespace std;#include<windows.h>typedef struct { /*员工通讯信息的结构类型定义*/ char num[5]; /*员工编号*/ char name[10]; /*员工姓名*/ char phone[15]; /*办...

2019-12-16 13:37:19 395

原创 二叉排序树

#include<iostream>using namespace std;typedef struct BSTNode{ int data; struct BSTNode *lchild,*rchild;}BSTNode,*BSTree;void InsertBST(BSTree &T,int data){ if(!T) { BSTree s=new ...

2019-12-14 20:39:23 99 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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