自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 cv 产生anchor代码解读

import numpy as npdef generate_anchors(scales, ratios, shape, feature_stride, anchor_stride): """ scales: 1D array of anchor sizes in pixels. Example: [32, 64, 128] ratios: 1D array o...

2019-05-15 12:55:10 328 1

转载 numpy argsort排序函数

https://blog.csdn.net/sunshine_in_moon/article/details/48803851

2018-10-06 17:34:41 187

转载 numpy.cov() 计算协方差矩阵

https://blog.csdn.net/chixujohnny/article/details/51063562

2018-10-06 17:16:53 927

原创 python knn分类算法

import mathimport operatordef euclideanDistance(inst1,inst2,length): distance=0 for x in range(length): distance+=pow((inst1[x]-inst2[x]),2) return math.sqrt(distance)def getN...

2018-09-13 15:14:02 183

原创 python网格编程 mnist

import numpyimport scipy.specialimport matplotlib.pyplotclass neuralNetwork:    def __init__(self,inputnodes,hiddennodes,outputnodes,learningrate) :        self.inodes=inputnodes        self.hno...

2018-09-10 21:25:48 907

原创 pat python B1046

num=int(input())qw=[[0 for col in range(0,4)] for row in range(0,num)]for i in range(0,num): qw[i]=input().split(" ")num1,num2=0,0for i in range(0,num): if int(qw[i][0])+int(qw[i][2])...

2018-09-03 13:18:38 127

原创 python PAT B1016

A,a,B,b=input().split()num1=A.count(a)num2=B.count(b)qw=''qw2=''if num1==0:qw=0if num2==0:qw2=0for i in range(0,num1):    qw+=afor i in range(0,num2):    qw2+=bprint(int(qw)+int(qw2))

2018-08-30 14:54:07 129

原创 PAT B1011 A+B 和 C(15 分)

num=int(input())for i in range(0,num):    a,b,c=input().split()    a=int(a)    b=int(b)    c=int(c)    if a+b>c:        print('Case #{}: {}'.format(i+1,'true'))    else:print('Case #{}: {}'...

2018-08-29 12:24:10 363

原创 用cmd打开python文件存在编码问题

可以用notepad++指定文件编码来解决问题

2018-07-25 15:17:42 482

原创 git常用命令

git config user.name""去掉引号可以查看git config user.email""去掉引号可以查看mkdir 创建文件夹cd 进入文件夹git init 初始gitnano-- 用nano编辑器编辑文件git add跟踪文件git commit -m""添加版本库git commit -am“”跟踪后直接提交到版本库git log查看提交信giygit ...

2018-07-25 13:10:19 98

原创 PAT程序设计考题——甲级1094(The largest generation) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010 struct node{ vector child; int level;

2017-07-21 18:42:00 269

原创 PAT程序设计考题——甲级1090( Highest Price in Supply Chain ) C++实现

点击打开链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010 struct node{//记录最长路径 和个数还有更好的方法

2017-07-21 14:17:20 277

原创 PAT程序设计考题——甲级1079( Total Sales of Supply Chain ) C++实现

点击打开链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct node{ int pnum; vector c

2017-07-21 13:27:17 321

原创 PAT程序设计考题——甲级1102( Invert a Binary Tree ) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct node{//由于题目中直接 给出了节点关系 用静态二叉树比较方便

2017-07-21 01:44:01 226

原创 PAT程序设计考题——甲级1086( The best rank ) C++实现

点击打开链接       #include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct node{ int id; nod

2017-07-20 02:04:04 270

原创 PAT程序设计考题——甲级1053( Path of Equal Weight) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int s;struct node{//注意为什么才用先更遍历 是因为到达某个节点

2017-07-18 00:31:27 277

原创 PAT程序设计考题——甲级1012( The best rank ) C++实现

自认为完美 但有两分没有调试成功点击打开链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct subject{

2017-07-16 01:52:15 565

原创 PAT程序设计考题——甲级1020( Tree traverse ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int pre[maxn];int post[maxn];

2017-07-14 20:18:40 301

原创 PAT程序设计考题——甲级1082( Read Number in Chinese ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010 int store[maxn];int num;str

2017-07-14 00:11:32 312

原创 PAT程序设计考题——甲级1077(Kuchiguse ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010 vector sto; string temp;voi

2017-07-12 19:30:08 218

原创 PAT程序设计考题——甲级1035( Password ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010bool  modefy[maxn]={false};str

2017-07-11 23:26:26 218

原创 PAT程序设计考题——甲级1058(A+B in Hogwarts ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int result[3]={0};int main()

2017-07-11 21:16:46 287

原创 PAT程序设计考题——甲级1027(Colors in Mars ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int store[maxn]={0};int num,ba

2017-07-11 20:58:52 220

原创 PAT程序设计考题——甲级1019( General Palindromic Number ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int store[maxn];int num,base;

2017-07-11 20:03:42 246

原创 PAT程序设计考题——甲级1031(Hello World for U) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int main(){ string a; cin>>a; int m=a

2017-07-11 19:18:24 245

原创 PAT程序设计考题——甲级1036( Boys vs Girls ) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct stu{ string gender;//gender这里表示名字

2017-07-11 16:14:30 265

原创 PAT程序设计考题——甲级1006(Sign In and Sign Out ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct member{ string id; 

2017-07-11 12:47:14 307

原创 PAT程序设计考题——甲级1011( World Cup Betting ) C++实现

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct ticket{ int result; double weigh

2017-07-11 12:00:12 268

原创 PAT程序设计考题——甲级1030(Travel Plan) C++实现

点击打开pat链接#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct highway{ int end; int

2017-07-11 11:27:19 296

原创 用SPFA求解最短路径问题

#include #include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct edge{//对此算法统计最短路径条数,和最大点权不太清楚  int

2017-07-11 09:26:11 323

原创 PAT程序设计考题——甲级1003(Emergency ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct edge{ int end,weight;};st

2017-07-10 01:03:21 290

原创 PAT程序设计考题——甲级1043(Is It a Binary Search Tree ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct node{ int num; node *lchild,*

2017-07-08 00:21:03 332

原创 PAT程序设计考题——甲级1066(Root of AVL Tree ) C++实现

点击打开pat链接#include#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct node{ int num,height; node *

2017-07-06 01:02:55 287

原创 PAT程序设计考题——甲级1009( Product of Polynomials ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct polo{ int zhi; double xi;};

2017-07-05 00:17:43 278

原创 PAT程序设计考题——甲级1107( Social clusters并查集) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int father[1010];int isroot[1010]={0};

2017-07-03 19:22:58 268

原创 PAT程序设计考题——甲级1098(Insertion or Heap Sort ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int start[maxn],heap[maxn],object[maxn];

2017-07-03 00:22:31 176

原创 PAT程序设计考题——甲级1014( Waiting in Line ) C++实现

点击打开pat链接#include #include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int line;struct windows{ int id;

2017-06-30 00:47:19 289

原创 PAT程序设计考题——甲级1065( A+B and C (64bit) ) C++实现

点击打开pat链接#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010int main(){long long a,b,c;int n;bool flag;ci

2017-06-24 02:17:07 269

原创 PAT程序设计考题——甲级1017(Queueing at Bank ) C++实现

点击打开pat链接#include#include#include#include#include#include#includeusing namespace std;#define INF 100000000#define maxn 100010struct customer{ int time,sertime;}newcustomer;

2017-06-24 01:46:04 223

原创 PAT程序设计考题——甲级1008( elevator) C++实现

to PAT#include #include#include#include#include#include#includeusing namespace std;#define maxn 100010int main(){ int m; cin>>m; if(m==0) return 0; int store[maxn]; int s

2017-06-22 19:46:06 604

空空如也

空空如也

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

TA关注的人

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