尼亚3c
码龄8年
关注
提问 私信
  • 博客:47,950
    47,950
    总访问量
  • 87
    原创
  • 588,189
    排名
  • 8
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2017-01-11
博客简介:

小木匠QvQ

博客描述:
此鸟不飞则已 一飞冲天 不鸣则已 一鸣惊人 我要做这只鸟儿!
查看详细资料
个人成就
  • 获得11次点赞
  • 内容获得1次评论
  • 获得28次收藏
创作历程
  • 89篇
    2017年
成就勋章
TA的专栏
  • 杭电题解
    1篇
  • 浙大PAT解题报告
    29篇
  • 北京大学OpenJudge解题报告
    16篇
  • 模拟
  • 枚举
    2篇
  • 递归
  • 分治
  • 图论
    2篇
  • 搜索
    5篇
  • 动态规划
    14篇
  • 喜欢的诗词文章
    2篇
  • Swust OJ 解题报告
    4篇
  • 树
    2篇
  • 字符串处理
    3篇
  • 数据结构之PTA
    10篇
  • Mooc 程序设计与算法1
    5篇
  • JAVA学习笔记
    4篇
  • Mooc 程序设计与算法2
    2篇
  • Mooc 程序设计C++(西安交大)
    1篇
  • 随笔
    1篇
  • PTA JAVA版本
    1篇
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

01-复杂度1 最大子列和问题(20 分)

import java.util.Scanner;import static java.lang.Math.*;public class Main { /** * O(n) algorithm. */ public static int longestSubsequence1(int[] p, int n) { int thisSum = 0; int maxSum =
原创
发布博客 2017.10.03 ·
307 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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
原创
发布博客 2017.08.02 ·
309 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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
原创
发布博客 2017.07.31 ·
320 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1053. Path of Equal Weight (30)

Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to Lis defined to be the sum of the weights of all the nodes along the path from R t
原创
发布博客 2017.07.31 ·
226 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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
原创
发布博客 2017.07.30 ·
215 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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
原创
发布博客 2017.07.29 ·
219 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1046. Shortest Distance (20)

The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file c
原创
发布博客 2017.07.29 ·
230 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1045. Favorite Color Stripe (30)

Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwanted pieces and sewing the remaining parts
原创
发布博客 2017.07.29 ·
199 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT 1044 Shopping in Mars(25)

Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position
原创
发布博客 2017.07.28 ·
281 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT题目分类

树:1043(判断给定序列是否为BST或镜像BST的先序序列,如是,给出相应的后序序列)
原创
发布博客 2017.07.28 ·
309 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT 1043. Is It a Binary Search Tree (25)

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 righ
原创
发布博客 2017.07.28 ·
220 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第十三周作业:冷血格斗场

总时间限制: 1000ms 内存限制: 65536kB描述为了迎接08年的奥运会,让大家更加了解各种格斗运动,facer新开了一家冷血格斗场。格斗场实行会员制,但是新来的会员不需要交入会费,而只要同一名老会员打一场表演赛,证明自己的实力。我们假设格斗的实力可以用一个正整数表示,成为实力值,两人的实力值可以相同。另外,每个人都有一个唯一的id,也是一个正整数。为了使得比赛
原创
发布博客 2017.04.30 ·
838 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第十二章 set和multiset

set和multiset插入,删除,查找都是O(log n)复杂度的。 set不允许重复 multiset则允许。#include "iostream"#include "map"#include "set"using namespace std;int main() { multisetst; int a[10] = { 1,14,12,13,7,13,21,19,8,8 };
原创
发布博客 2017.04.28 ·
329 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第十一章 算法的时间复杂度

1:派总时间限制: 1000ms 内存限制: 65536kB描述我的生日要到了!根据习俗,我需要将一些派分给大家。我有N个不同口味、不同大小的派。有F个朋友会来参加我的派对,每个人会拿到一块派(必须一个派的一块,不能由几个派的小块拼成;可以是一整个派)。我的朋友们都特别小气,如果有人拿到更大的一块,就会开始抱怨。因此所有人拿到的派是同样大小的(但不需要是
原创
发布博客 2017.04.26 ·
451 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

[OS] 操作系统常考知识点

转载自:http://www.cnblogs.com/lca1826/p/6604695.html大纲如下:1.操作系统概述2.操作系统运行环境3.进程线程模型4.处理器调度5.同步机制6.存储模型7.文件系统8.I/O系统9.死锁 ·操作系统概述1.执行程序:通过调度选中程序开始执行,在执行过程中,不断陷入操作系统提供各种服务支持,再调度选中程
转载
发布博客 2017.03.31 ·
597 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第十章

1:成绩排序总时间限制: 1000ms 内存限制: 65536kB描述给出班里某门课程的成绩单,请你按成绩从高到低对成绩单排序输出,如果有相同分数则名字字典序小的在前。输入第一行为n (0 接下来的n行,每行为每个学生的名字和他的成绩, 中间用单个空格隔开。名字只包含字母且长度不超过20,成绩为一个不大于100的非负整数。输出把成绩单按分数从高到
原创
发布博客 2017.03.29 ·
2772 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1054. The Dominant Color (20)

Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the d
原创
发布博客 2017.03.29 ·
328 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第七章 深度优先搜索(dfs+可行性剪枝)

1:红与黑总时间限制: 1000ms 内存限制: 65536kB描述有一间长方形的房子,地上铺了红色、黑色两种颜色的正方形瓷砖。你站在其中一块黑色的瓷砖上,只能向相邻的黑色瓷砖移动。请写一个程序,计算你总共能够到达多少块黑色的瓷砖。输入包括多个数据集合。每个数据集合的第一行是两个整数W和H,分别表示x方向和y方向瓷砖的数量。W和H都不超过20。在接下来的H行中,每行
原创
发布博客 2017.03.27 ·
877 阅读 ·
0 点赞 ·
0 评论 ·
4 收藏

第八章 深度优先搜索(dfs+可行性剪枝+最优性剪枝)

1:鸣人和佐助总时间限制: 1000ms 内存限制: 65536kB描述佐助被大蛇丸诱骗走了,鸣人在多少时间内能追上他呢?已知一张地图(以二维矩阵的形式表示)以及佐助和鸣人的位置。地图上的每个位置都可以走到,只不过有些位置上有大蛇丸的手下,需要先打败大蛇丸的手下才能到这些位置。鸣人有一定数量的查克拉,每一个单位的查克拉可以打败一个大蛇丸的手下。假设鸣人可以往上下左右
原创
发布博客 2017.03.27 ·
1957 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

04-树5 Root of AVL Tree (25分)

An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is
原创
发布博客 2017.03.26 ·
393 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多