/* 作者:程序袁欢 功能:创建继承类*/ #include<iostream> using namespace std; class People { public: void setname(const char* name); const char *getname(); void setag ...
分类:
编程语言 时间:
2020-05-19 18:30:23
阅读次数:
67
题目 People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6 digit number, w ...
分类:
其他好文 时间:
2020-05-18 14:35:03
阅读次数:
49
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher ...
分类:
其他好文 时间:
2020-05-16 22:26:57
阅读次数:
80
People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, m ...
分类:
其他好文 时间:
2020-05-16 15:09:08
阅读次数:
63
Evacuation (二分图) Describe Fires can be disastrous, especially when a fire breaks out in a room that is completely filled with people. Rooms usually ha ...
分类:
其他好文 时间:
2020-05-16 12:15:25
阅读次数:
60
给定N个人的出生年份和死亡年份,第i个人的出生年份为birth[i],死亡年份为death[i],实现一个方法以计算生存人数最多的年份。 你可以假设所有人都出生于1900年至2000年(含1900和2000)之间。如果一个人在某一年的任意时期都处于生存状态,那么他们应该被纳入那一年的统计中。例如,生 ...
分类:
其他好文 时间:
2020-05-14 11:39:05
阅读次数:
748
POJ3057 Evacuation 二分图匹配+最短路 题目描述 Fires can be disastrous, especially when a fire breaks out in a room that is completely filled with people. Rooms us ...
分类:
其他好文 时间:
2020-05-13 23:41:35
阅读次数:
114
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-05-11 23:31:41
阅读次数:
66
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 ...
分类:
其他好文 时间:
2020-05-11 15:09:42
阅读次数:
62
题目描述: 题目意思是,给定一个people二维数组,里面放的是1*2的一维数组,其第一个元素是身高,第二个元素是原始队列中该位置前面身高大于等于此身高的人数,题目要求将这个打乱了的队列恢复到之前的样子。 解题思路: 通过观察可以知道,应该先排个子高的人,他们的相对位置确定之后,比他们低的人进队将不 ...
分类:
其他好文 时间:
2020-05-10 23:32:29
阅读次数:
111