最新 最热

2019 ICPC 银川网络赛 D. Take Your Seat (疯子坐飞机问题)

Duha decided to have a trip to Singapore by plane.

2020-10-28
1

Codeforce 1155D Beautiful Array(DP)

You are given an array aa consisting of nn integers. Beauty of array is the maximum sum of some consecutive subarray of this array (this subarray may be empty)....

2020-10-28
1

POJ 3211 Washing Clothes

Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 10738 Accepted: 3480 Description

2020-10-28
1

流程控制

顺序结构是程序中最简单、最基本的流程控制,它没有特定的语法结构,程序会按照代码的先后顺序,依次执行,程序中大多数的代码都是这样执行的。...

2020-10-26
1

数据库的左联结和右联结是个啥呢?

【1】因为姓名和成绩在两张表所以需要用到左联结,因为要计算每个学生的总成绩用到sum函数所以需要用到group by

2020-10-26
1

【设计模式系列】行为型之状态模式

状态模式(State Pattern):允许一个对象在其内部状态改变时改变它的行为,对象看起来似乎修改了它的类。状态模式是一种对象行为型模式。大家着重理解对象,多种状态...

2020-10-26
1

B. Minimize the Permutation (贪心)

You are given a permutation of length n. Recall that the permutation is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, ...

2020-10-23
1

HDOJ 1009(贪心)

Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The wa...

2020-10-23
1

POJ1611 (并查集)

Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmiss...

2020-10-23
1

【C语言简单说】十一:switch 补

今天继续,来说一下。。。那个。。。另外一个分支switch。 直接上代码,学过了if的孩子就会觉得很简单的了:

2020-10-23
1