自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 『杭电1083』Courses

Problem Description Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine...

2020-05-31 10:34:31 42 0

原创 『杭电1082』Matrix Chain Multiplication

Problem Description Matrix multiplication problem is a typical example of dynamical programming. Suppose you have to evaluate an expression like A...

2020-05-31 10:26:55 60 0

原创 『杭电1081』To The Max

Problem Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or g...

2020-05-31 09:41:43 87 0

原创 题101. 对称二叉树

Java /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeN...

2020-05-31 09:23:05 39 0

原创 题84. 柱状图中最大的矩形

Python class Solution: def largestRectangleArea(self, heights): """ :type heights: List[int] :rtype: int...

2020-05-31 08:52:24 33 0

原创 『杭电1076』An Easy Task

Problem Description Ignatius was born in a leap year, so he want to know when he could hold his birthday party. Can you tell him? Given a positive...

2020-05-31 08:52:03 24 0

原创 『杭电1077』Catching Fish

Problem Description Ignatius likes catching fish very much. He has a fishnet whose shape is a circle of radius one. Now he is about to use his fish...

2020-05-31 08:51:53 25 0

原创 『杭电1078』FatMouse and Cheese

Problem Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is la...

2020-05-31 08:51:42 32 0

原创 『杭电1079』Calendar Game

Problem Description Adam and Eve enter this year’s ACM International Collegiate Programming Contest. Last night, they played the Calendar Game, in ...

2020-05-31 08:51:26 14 0

原创 『杭电1080』Human Gene Functions

Problem Description It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by...

2020-05-31 08:51:16 43 0

原创 『杭电1067』Gap

Problem Description Let's play a card game called Gap. You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) repres...

2020-05-30 07:05:42 62 0

原创 『杭电1069』Monkey and Banana

Problem Description A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a buildin...

2020-05-30 07:05:32 142 0

原创 『杭电1068』Girls and Boys

Problem Description the second year of the university somebody started a study on the romantic relations between the students. The relation “romant...

2020-05-30 07:05:23 30 0

原创 『杭电1070』Milk

Problem Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of mi...

2020-05-30 07:05:13 26 0

原创 『杭电1071』The area

Problem Description Ignatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a...

2020-05-30 07:04:54 21 0

原创 『杭电1072』Nightmare

Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignati...

2020-05-30 07:04:45 27 0

原创 『杭电1073』Online Judge

Problem Description Ignatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read da...

2020-05-30 07:04:36 23 0

原创 『杭电1074』Doing Homework

Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadli...

2020-05-30 07:04:26 33 0

原创 『杭电1075』What Are You Talking About

Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives ...

2020-05-30 07:04:15 22 0

原创 题198. 打家劫舍

C++ class Solution { public: int rob(vector<int>& nums) { int n_size = nums.size(); if (n_size == 0) return 0; ...

2020-05-30 07:04:04 25 0

原创 『杭电1066』Last non-zero Digit in N!

Problem Description The expression N!, read as "N factorial," denotes the product of the first N positive integers, where N is nonnegativ...

2020-05-29 09:27:28 39 0

原创 『杭电1065』I Think I Need a Houseboat

Problem Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the lan...

2020-05-29 09:18:05 41 0

原创 『杭电1064』Financial Management

Problem Description Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. Larry has ...

2020-05-29 09:07:19 51 0

原创 『杭电1063』Exponentiation

Problem Description Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computati...

2020-05-29 09:00:42 66 0

原创 『杭电1062』Text Reverse

Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all ...

2020-05-29 08:53:07 149 0

原创 『杭电1061』Rightmost Digit

Problem Description Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The...

2020-05-29 07:59:21 39 0

原创 『杭电1060』Leftmost Digit

Problem Description Given a positive integer N, you should output the leftmost digit of N^N. Input The input contains several test cases. The f...

2020-05-29 07:37:26 35 0

原创 『杭电1059』Dividing

Problem Description Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal s...

2020-05-29 07:31:04 48 0

原创 『杭电1058』Humble Numbers

Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14,...

2020-05-29 07:26:29 37 0

原创 『杭电1057』A New Growth Industry

Problem Description A biologist experimenting with DNA modification of bacteria has found a way to make bacterial colonies sensitive to the su...

2020-05-29 07:21:32 46 0

原创 『杭电1056』HangOver

Problem Description How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card ...

2020-05-28 21:47:09 37 0

原创 题394. 字符串解码

C++ class Solution { public: string decodeString(string s) { string ans = ""; stack<char>st; /*visit all the character...

2020-05-28 21:37:26 71 0

原创 题974. 和可被 K 整除的子数组

C++ class Solution { public: int subarraysDivByK(vector<int>& A, int k) { unordered_map<int,int>hash; int s=0,r...

2020-05-27 08:02:13 25 0

原创 『杭电1055』Color a Tree

Problem Description Bob is very interested in the data structure of a tree. A tree is a directed graph in which a special node is singled out, call...

2020-05-27 07:49:17 31 0

原创 单片机应用系统设计技术——基于的51单片机全自动洗衣机设计

基于的51单片机全自动洗衣机设计 一、实验目的 二、实验内容 三、实验步骤 四、C代码如下 五、实验结果 六、实验体会 一、实验目的 模拟全自动洗衣机工作过程。以电机替代洗衣机电机。显示洗衣机工作的状态(进水、浸泡、洗衣、脱水、结束)。显示工作剩余时间(洗衣程序可自定义,时间精度:...

2020-05-27 07:47:10 273 0

原创 『杭电1054』Strategic Game

Problem Description Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then h...

2020-05-26 09:56:49 41 0

原创 『杭电1053』Entropy

Problem Description An entropy encoder is a data encoding method that achieves lossless data compression by encoding a message with “wasted” or “ex...

2020-05-26 09:52:19 74 0

原创 『杭电1052』Tian Ji -- The Horse Racing

Problem Description Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a high official in the cou...

2020-05-26 09:47:12 82 0

原创 『杭电1051』Wooden Sticks

Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by...

2020-05-26 09:05:26 49 0

原创 题287. 寻找重复数

C++ class Solution { public: int findDuplicate(vector<int>& nums) { int cnt = 0 ; int L = 1 , R = nums.size() -...

2020-05-26 08:55:46 49 0

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