Party A company has n employees numbered from 1 to n. Each employee either has no immediate manager or exactly one immediate manager, who is another e ...
分类:
其他好文 时间:
2019-11-09 20:00:13
阅读次数:
92
There are nn students at your university. The programming skill of the ii-th student is aiai. As a coach, you want to divide them into teams to prepar ...
分类:
其他好文 时间:
2019-11-06 12:54:44
阅读次数:
85
链接: https://codeforces.com/contest/1245/problem/D 题意: Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follow ...
分类:
其他好文 时间:
2019-11-05 13:29:48
阅读次数:
116
```struct task_struct { struct thread_info thread_info; volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped: */ void *stack; /* 堆指针 */ atomi... ...
分类:
其他好文 时间:
2019-11-02 19:49:43
阅读次数:
86
Yet Another Dividing into Teams 有一个长度为n的序列a1,a2...an,将他们分为若干组,使得每一组没有两个数的差为1,使分的组数尽可能少。 思路:将数组排序之后从前往后遍历,如果出现了两个数的差值为1 那么就得分两组 否则 一组 B1、B2 - Books Exc ...
分类:
其他好文 时间:
2019-10-29 21:56:08
阅读次数:
133
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e ...
分类:
编程语言 时间:
2019-10-29 00:07:50
阅读次数:
87
import定义:Python code in one module gains access to the code in another module by the process of importing it. 一 模块module 文件,类型有".py"、".pyo"、".pyc"、".p ...
分类:
其他好文 时间:
2019-10-28 12:37:08
阅读次数:
59
题目描述 In the mathematical discipline of graph theory, the line graph of a simple undirected weighted graph G is another simple undirected weighted grap ...
分类:
其他好文 时间:
2019-10-27 20:50:31
阅读次数:
119
##总结: String:底层代码是一个用final修饰的char数组,是一个不可变的字符串,因此是线程安全的。对String字符串进行改变时,都会产生一个新的String对象,然后将指针指向String对象,影响系统性能,适用于少量字符串操作的情况。String初始化时,除了用构造函数进行初始化, ...
分类:
其他好文 时间:
2019-10-24 00:16:39
阅读次数:
106
A. Yet Another Dividing into Teams Description Solution 1 #include <algorithm> 2 #include <cctype> 3 #include <cmath> 4 #include <cstdio> 5 #include < ...
分类:
其他好文 时间:
2019-10-23 20:04:59
阅读次数:
95