- 博客(37)
- 收藏
- 关注
转载 Sublime Text 3(3207)破解
原文地址:https://www.abbeyok.com/archives/337本方法适用:Sublime Text Version 3.2.1, Build 3207安装sublime text3下载地址:https://www.sublimetext.com/3根据你系统的版本下载安装修改sublime text 3 exe程序进入:https://hexed.it/...
2019-04-13 21:31:44
2590
2
原创 VS2017配置opencv3.4.0教程(详细)
1、下载opencv3.4.0https://www.opencv.org/releases.html2、下载VS2017https://visualstudio.microsoft.com/zh-hans/downloads/4、打开我的电脑 -> 右击属性 -> 高级系统设置 -> 环境变量 -> 找到Path编辑 添加VS2017对应VC版本为VC15...
2018-11-29 20:45:50
2157
原创 读几个小程序了解c++:Part 04(多态)
#include "iostream"using namespace std;///多态是指不同子类间的同名函数表现形式不同///实现多态可以让变量根据类型选择合适的同名函数class Student {public: Student(string n, int a, int h, int w); Student(){} void set_(string n, int a, i...
2018-03-11 11:13:31
355
转载 搞ACM的你伤不起(转)
(每一句都有笑点,很好玩的一篇文章,转了)劳资六年前开始搞ACM啊!!!!!!!!!! 从此踏上了尼玛不归路啊!!!!!!!!!!!! 谁特么跟劳资讲算法是程序设计的核心啊!!!!!! 尼玛除了面试题就没见过用算法的地方啊!!!!!! 谁再跟劳资讲算法之美算法的力量,劳资一本算法导论拍死你啊!!!!!!!! 那是搞ACM的入门书啊!!!!特么的入门书就一千多页啊!!!!!!! 还没有习题答案啊,学...
2018-03-10 16:16:19
334
原创 读几个小程序了解c++:Part 03(派生类和继承)
#include <iostream>using namespace std;/// 基类中的成员 公有派生类 私有派生类 保护派生类/// 私有成员 不可直接访问 不可直接访问 不可直接访问/// 公有成员 public private protected/// 保护成...
2018-03-02 21:08:09
223
原创 PAT 甲级1131. Subway Map (30)
In the big cities, the subway systems always look so complex to the visitors. To give you some sense, the following figure shows the map of Beijing subway. Now you are supposed to help people with you...
2018-03-02 21:07:11
1034
原创 吴恩达机器学习入门(配合吴恩达机器学习视频篇)
这几天把吴恩达机器学习的视频看了下,都是很基础的,很适合入门视频链接:网易云课堂-吴恩达机器学习配套讲解链接:第一节 第二节 第三节 第四节 第五节入门的话每天看一节就可以,用到的知识也都很基础(微积分、矩阵等大学里都学过的知识)...
2018-02-28 20:40:17
17326
原创 读几个小程序了解c++:Part 02(友元、常类型)
#include <cstring>#include <iostream>using namespace std;/* 类的主要特点是信息隐藏与封装,友元函数是为了实现在类的外部访 问类的私人成员(或保护成员),是一扇通向私人(保护)成员的后 门,使得普通函数也可以访问封装在某一类的信息。*/class Girl; ///提前声明Girl类cla...
2018-02-28 20:29:55
181
原创 PAT甲级 1135. Is It A Red-Black Tree (30) 建树+深搜
There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties:(1) Every node is either red or black.(2) The root is black.(3) Every leaf ...
2018-02-28 20:27:37
414
原创 读几个小程序了解c++:Part 01(构造函数、析构函数、指针、静态数据成员)
以前学c++的时候光打酱油了,现在抽出几天时间把c++系统复习一下,每天敲一个小程序记录下自己学习的东西。#include <cstdio>#include <climits>#include <algorithm>#include <cstring>#include <iostream>using namespace std;...
2018-02-27 18:23:28
206
原创 PAT甲级 1079. Total Sales of Supply Chain (25)
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the ...
2018-02-19 21:19:07
234
原创 PAT甲级 1137. Final Grading (25)
For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from...
2018-02-06 23:08:22
376
原创 PAT甲级 1138. Postorder Traversal (25)
Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first number of the postorder traversal se...
2018-02-06 22:52:28
342
原创 PAT甲级 1139. First Contact (30)
Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a girl B, he would usually not contact her directly i...
2018-02-06 17:50:35
1556
原创 PAT甲级 1095. Cars on Campus (30)
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the information available, you a...
2017-09-03 23:31:14
265
原创 PAT甲级 1096. Consecutive Factors (20)
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, where 5, 6, and 7 are the three consecutive numbers. Now given ...
2017-01-20 16:38:49
395
原创 PAT甲级 1097. Deduplication on a Linked List (25)
Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value or a...
2017-01-20 11:05:50
317
原创 PAT甲级 1098. Insertion or Heap Sort (25)
According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, f...
2017-01-20 09:54:21
337
原创 PAT甲级 1099. Build A Binary Search Tree (30)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The right subtre...
2017-01-19 21:50:29
361
原创 PAT甲级 1100. Mars Numbers (20)
People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars.The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec" on Mars, resp...
2017-01-19 17:20:16
317
原创 PAT甲级 1101. Quick Sort (25)
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved to its le...
2017-01-19 16:34:15
280
原创 PAT甲级 1102. Invert a Binary Tree (25)
The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn to prove...
2017-01-19 16:04:57
269
原创 PAT甲级 1103. Integer Factorization (30)
The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K-P factorization of N for any positive...
2017-01-19 15:10:17
291
原创 PAT甲级 1104. Sum of Number Segments (20)
Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence {0.1, 0.2, 0.3, 0.4}, we have 10 segments: (0.1) (0.1, 0.2) (0.1, 0.2, 0.3) ...
2017-01-18 22:47:40
224
原创 PAT甲级 1105. Spiral Matrix (25)
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the first element at the upper-left corner, then move in...
2017-01-18 22:18:40
289
原创 PAT甲级 1106. Lowest Price in Supply Chain (25)
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the ...
2017-01-18 21:54:21
393
原创 PAT甲级 1107. Social Clusters (30)
When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A "social cluster" is a set of people who have some of th...
2017-01-18 21:46:31
236
原创 PAT甲级 1108. Finding Average (20)
The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A "legal" input is a re...
2017-01-18 17:07:18
1191
1
原创 PAT甲级 1109. Group Photo (25)
Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following:The number of people in each row must be N/K (round down to the nearest integer)...
2017-01-18 17:04:54
389
原创 PAT甲级 1110. Complete Binary Tree (25)
Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (<=20) wh...
2017-01-18 16:59:20
305
原创 PAT甲级 1111. Online Map (30)
Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is the fastest. It is g...
2017-01-18 11:47:38
1304
原创 PAT甲级 1115. Counting Nodes in a BST (30)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than or equal to the node's key.The ...
2017-01-17 14:37:46
340
原创 PAT甲级 1118 Birds in Forest (25)
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maxi...
2017-01-17 10:54:56
705
原创 PAT甲级 1119. Pre- and Post-order Traversals (30)
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences, or preorder and inorder ...
2017-01-16 19:03:32
412
原创 pat甲级 1121. Damn Single (25)
"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input Specification:Each inpu
2017-01-16 12:21:00
689
原创 pat甲级 1122. Hamiltonian Cycle (25)
The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supposed to tell if a given cycle
2017-01-16 11:11:40
879
原创 pat甲级 1009. Product of Polynomials (25)
This time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the information...
2017-01-15 12:06:32
326
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人