自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 逗号

#include <stdio.h>#include <stdlib.h>#includeusing namespace std;int main(){int a[100];int num = 0;char c;scanf("%d",&a[num++]);scanf("%c",&c);while(c == ','){ scanf...

2019-03-21 23:46:52 104

翻译 王道——并查集———最小生成树

#include<stdio.h>#include#include<stdlib.h>using namespace std;int tree[101];int findroot(int x){if(tree[x] == -1)return x;else{int root = findroot(tree[x]);tree[x] = root; ...

2019-03-21 20:19:53 479

原创 堆算哈夫曼树,王道

#include<stdio.h>#includeusing namespace std;priority_queue<int,vector,greater> que;int main(){int n;while(scanf("%d",&n) != EOF){while(que.empty() == false) que.pop(); for(in...

2019-03-21 10:52:45 158

翻译 进制转换

输入 :a n b要求将a进制的n,以b进制输出#include<stdio.h>#include<string.h>int main(){int a ,b;char str[100];while(scanf("%d%s%d",&a,str,&b) != EOF){int tmp =0;int l = strlen(str);in...

2019-03-21 10:03:08 72

转载 高精度数据

#include <stdio.h>#include <string.h>struct bigInteger{int digit[1000];int size;void init(){for(int i = 0;i < 1000;i++){digit[i] = 0;}size = 0;}void set(char str[]){init...

2019-03-21 09:30:56 308

转载 日期

日期类考研,两个基本轮子:1,时间的结构体,该结构体要加上自动导出下一天几年几月几号的函数2,以0年1月1日为基准,用一个三维数组寸到5000年1月1日,每一天与0年1月1日的差距#include <stdio.h>#define ISYEAP(x) x % 100 != 0 && x % 4 == 0 || x % 400 == 0 ? 1 : 0// 定义...

2019-03-20 23:06:49 82

原创 数学

1,结构体重载运算符#include <string.h>struct E{int score;int age;char name[20];bool operator <(const E &b) const{if(score != b.score) return score < b.score;int tmp = strcmp(name,b.nam...

2019-03-20 22:53:22 82

原创 读写----勿看,个人

#include<stdio.h>#include<stdlib.h>struct person{int data;char name[20];char cla[20];int sco;}list[100];int main(){FILE*fp;if((fp=fopen("write.txt","rt"))==NULL) //待读写文件必须放到 rea...

2019-03-20 16:58:51 181

原创 无用

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Dat...

2019-03-20 16:47:25 131

空空如也

空空如也

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

TA关注的人

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