自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

flx413的博客

我只想搞懂我现在学的东西

  • 博客(48)
  • 资源 (5)
  • 问答 (23)
  • 收藏
  • 关注

原创 PAT(A) - 1048. Find Coins (25)

Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,

2016-09-29 20:06:13 273

原创 PAT(A) - 1022. Digital Library (30)

A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a

2016-09-29 19:45:53 252

原创 PAT(A) - 1012. The Best Rank (25)

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and E - Eng

2016-09-28 17:12:42 264

原创 PAT(A) - 1056. Mice and Rice (25)

Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice

2016-09-28 16:50:30 346

原创 PAT(A) - 1075. PAT Judge (25)

The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist for PAT.Input Specification:Each input fil

2016-09-28 16:45:58 289

原创 LeetCode-7. Reverse Integer

Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Subscribe to see which companies asked this question注意返回int的范围,超

2016-09-26 21:19:51 230

原创 LeetCode-100. Same Tree

Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.Subscr

2016-09-26 20:47:30 229

原创 LeetCode-371. Sum of Two Integers

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.Credits:Special thanks to @fujiaozhu for adding this

2016-09-26 20:33:02 224

原创 LeetCode-283. Move Zeroes

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling you

2016-09-26 20:18:40 267

原创 LeetCode-226. Invert Binary Tree

Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired by this original tweet by Max Howe

2016-09-26 20:03:35 241

原创 PAT(A) - 1019. General Palindromic Number (20)

A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers

2016-09-25 15:46:05 259

原创 Python(x,y)安装

准备开始学习Python了,使用的IDE是Python(x,y)下载:http://www.softpedia.com/get/Programming/Other-Programming-Files/Python-x-y.shtmlPython(x,y)里集成了Python的环境,目前是2.7.10。安装的时候建议安装路径为“c:\pythonxy”。否则Python将可能无法正确调用某些

2016-09-25 12:27:59 5063

原创 PAT(A) - 1055. The World's Richest (25)

Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this job, but concentrate only on the peopl

2016-09-24 18:21:42 273

原创 PAT(A) - 1086. Tree Traversals Again (25)

An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stac

2016-09-24 11:17:56 322

原创 PAT(A) - 1058. A+B in Hogwarts (20)

1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would

2016-09-23 21:08:12 246

原创 PAT(A) - 1057. Stack (30)

1057. Stack (30)时间限制150 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueStack is one of the most fundamental data structures

2016-09-23 20:56:40 300

原创 PAT(A) - 1094. The Largest Generation (25)

1094. The Largest Generation (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually prese

2016-09-23 18:16:06 330

原创 PAT(A) - 1064. Complete Binary Search Tree (30)

1064. Complete Binary Search Tree (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is

2016-09-22 09:41:49 271

原创 PAT(A) - 1099. Build A Binary Search Tree (30)

1099. Build A Binary Search Tree (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is r

2016-09-22 09:37:49 338

原创 PAT(A) - 1102. Invert a Binary Tree (25)

1102. Invert a Binary Tree (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe following is from Max Howell @twi

2016-09-21 23:57:09 314

原创 PAT(A) - 1063. Set Similarity (25)

Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct n

2016-09-21 23:19:58 282

原创 PAT - 03-树2 List Leaves (25分)

03-树2 List Leaves   (25分)Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. F

2016-09-21 12:43:55 2990

原创 NYOJ-1112 求次数(STL)

求次数时间限制:1000 ms  |  内存限制:65535 KB难度:2描述题意很简单,给一个数n 以及一个字符串str,区间【i,i+n-1】 为一个新的字符串,i 属于【0,strlen(str)】如果新的字符串出现过ans++,例如:acmacm n=3,那么 子串为acm cma mac acm ,只有acm出现过求ans;输入

2016-09-20 20:01:24 283

原创 NYOJ-95 众数问题(STL)

众数问题时间限制:3000 ms  |  内存限制:65535 KB难度:3描述所谓众数,就是对于给定的含有N个元素的多重集合,每个元素在S中出现次数最多的成为该元素的重数,多重集合S重的重数最大的元素成为众数。例如:S={1,2,2,2,3,5},则多重集S的众数是2,其重数为3。现在你的任务是:对于给定的由m个自然数组成的多重集S,计算出

2016-09-20 19:39:01 475

原创 PAT(A) - 1047. Student List for Course (25)

Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input S

2016-09-19 22:45:21 343

原创 PAT(A) - 1039. Course List for Student (25)

Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes

2016-09-19 22:19:55 344

原创 PAT(A) - 1024. Palindromic Number (25)

A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers

2016-09-17 15:25:20 279

原创 PAT(A) - 1052. Linked List Sorting (25)

A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. Now give

2016-09-17 15:00:12 237

原创 PAT(A) - 1032. Sharing (25)

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,

2016-09-17 10:54:47 229

原创 PAT(A) - 1070. Mooncake (25)

Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now

2016-09-16 21:42:17 273

原创 PAT(A) - 1042. Shuffling Machine (20)

Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gambler

2016-09-16 21:41:29 281

原创 PAT(A) - 1023. Have Fun with Numbers (20)

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con

2016-09-14 20:54:47 261

原创 PAT(A) - 1028. List Sorting (25)

Excel can sort records according to any column. Now you are supposed to imitate this function.InputEach input file contains one test case. For each case, the first line contains two integers N

2016-09-14 18:00:47 235

原创 PAT(A) - 1035. Password (20)

To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L

2016-09-14 12:59:51 361

原创 PAT(A) - 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

2016-09-13 13:29:34 1186

原创 PAT(B) - 1057. 数零壹(20)

给定一串长度不超过105的字符串,本题要求你将其中所有英文字母的序号(字母a-z对应序号1-26,不分大小写)相加,得到整数N,然后再分析一下N的二进制表示中有多少0、多少1。例如给定字符串“PAT (Basic)”,其字母序号之和为:16+1+20+2+1+19+9+3=71,而71的二进制是1000111,即有3个0、4个1。输入格式:输入在一行中给出长度不超过105、以回车结

2016-09-13 00:32:39 956

原创 PAT(B) - 1059. C语言竞赛(20)

C语言竞赛是浙江大学计算机学院主持的一个欢乐的竞赛。既然竞赛主旨是为了好玩,颁奖规则也就制定得很滑稽:0. 冠军将赢得一份“神秘大奖”(比如很巨大的一本学生研究论文集……)。1. 排名为素数的学生将赢得最好的奖品 —— 小黄人玩偶!2. 其他人将得到巧克力。给定比赛的最终排名以及一系列参赛者的ID,你要给出这些参赛者应该获得的奖品。输入格式:输入第一行给出一

2016-09-13 00:30:29 367

原创 PAT(B) - 1056. 组合数的和(15)

给定N个非0的个位数字,用其中任意2个数字都可以组合成1个2位的数字。要求所有可能组合出来的2位数字的和。例如给定2、5、8,则可以组合出:25、28、52、58、82、85,它们的和为330。输入格式:输入在一行中先给出N(1输出格式:输出所有可能组合出来的2位数字的和。输入样例:3 2 8 5输出样例:330#include #de

2016-09-13 00:09:44 2180

原创 PAT(B) - 1060. 爱丁顿数(25)

英国天文学家爱丁顿很喜欢骑车。据说他为了炫耀自己的骑车功力,还定义了一个“爱丁顿数”E,即满足有E天骑车超过E英里的最大整数E。据说爱丁顿自己的E等于87。现给定某人N天的骑车距离,请你算出对应的爱丁顿数E(输入格式:输入第一行给出一个正整数N(5),即连续骑车的天数;第二行给出N个非负整数,代表每天的骑车距离。输出格式:在一行中给出N天的爱丁顿数。输入

2016-09-12 21:16:26 1778

原创 PAT(B) 101-139-2-2016-09-11 考试总结

(注:本文没有源码,有提供解题思路,最近比较忙,源码我会在后续继续补充)参加了浙江大学组织的PAT考试,由于是第一次参加,不知道水的深浅,我就报名的是乙级~(主要原因还是担心英语题看不懂.......),结果也不错,全部AC说说考试经历吧,整个考场就4个人,小地方嘛~每次报名的人都是个位数,也不用担心抢不到座位~。考场提供VC6、DevC++、Eclipse下午1点半题目准时放

2016-09-12 20:42:50 574

实战突击:Visual C++项目开发案例整合.pdf

本书以局域网监控系统、快乐五子棋、图像处理系统、餐饮管理系统、客房管理系统、工资管理系统、指纹考勤管理系统、合同管理系统、客户资源管理系统、资产设备管理系统、仓库管理系统、商品采购管理系统、商品销售管理系统、超市进销存管理系统、物流综合管理系统、汽配管理系统、学生管理系统、图书管理系统、文档管理系统、智能大厦自动报警系统、企业内部通信系统等21个实际项目开发程序为案例,从软件工程的角度出发,按照项目的开发顺序,系统、全面地介绍了程序的开发流程。从开发背景、需求分析、系统功能分析、数据库分析、数据库结构、系统开发到系统的编译发行,每一过程都进行了详细的介绍。

2018-07-05

VS2015的OpenCV环境

VS2015的OpenCV环境配置,用于Windows平台,经过cmake编译的,解压后在工程中配置即可使用

2018-07-05

利用Bmob + ImageLoader 加载网络图片

http://blog.csdn.net/flx413/article/details/77126706 有详细说明

2017-08-13

SDL入门学习

SDL的入门学习

2016-07-24

android studio java文件红色j如何解决

2016-08-01

关于校验手机号码问题

2016-07-17

OpenCV提取视频关键帧的算法

2016-05-08

OpenCV加载PNG图片,显示图片背景是黑色的?

2016-05-05

OpenCV如何给图片添加水印?

2016-05-05

利用OpenCV如何将一张图片替换掉已存在视频的某一桢位置上?

2016-05-04

ffmpeg提取视频某一帧,提取这一桢的图像进行加密,如何将加密后的图像插入到原来的那一桢上?

2016-04-29

Xabber-Beta 主界面的侧滑菜单在哪个文件里?

2016-04-16

Error:Configuration with name 'default' not found.

2016-04-07

使用QT新建Designer Form对话框时没有生成对话框的.cpp和.h文件?

2016-03-31

Android Studio 安装Installing Build Tools失败

2016-03-31

Android Studio SDK需要安装哪些?

2016-03-31

如何用C语言将一个二值图(只有黑白)转换成一个01数字矩阵?

2016-03-30

Android Studio如何打开一个下载好的项目

2016-03-25

在做一个暴力破解密文的课设,如何快速地匹配文件中的单词?

2016-03-19

如何按住鼠标左键连续发送消息

2016-02-23

Windows编程如何监听鼠标是否被一直按下

2016-02-23

C++课程设计 有一个要求重载输入“>>”运算符,使得可以通过cin直接读入一个类的对象值??

2016-01-08

VC6.0 如何配置Nehe OpenGL SDK

2015-12-29

Android 用百度地图定位location.getAddrStr()得到的结果是null

2015-11-24

PAT1022 D进制的A+B 一个测试点不通过

2015-11-14

二叉树前序遍历算法改写

2015-11-11

非递归利用队列创建二叉树

2015-11-11

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

TA关注的人

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