最新 最热

中位数和平均数(题目来源:JLOJ2332)

Description 通常把在 n 个排好序的数中,位于最中间的数就走“中位数”,这里再规定细一点,如果 n 是奇数,那么最中间的数只有一个,那就是“中位数”,但如果 n 是偶数,那么最中间的数有两个,我们把这两个数的平均数也叫作“中...

2020-10-29
1

CF--思维练习-- CodeForces - 215C - Crosses(思维题)

ACM思维题训练集合 There is a board with a grid consisting of n rows and m columns, the rows are numbered from 1 from top to bottom and the columns are numbered from 1...

2020-10-29
1

CF--思维练习--CodeForces - 216C - Hiring Staff (思维+模拟)

ACM思维题训练集合 A new Berland businessman Vitaly is going to open a household appliances’ store. All he’s got to do now is to hire the staff.

2020-10-29
1

CF思维联系– Codeforces-990C Bracket Sequences Concatenation Problem(括号匹配+模拟)

ACM思维题训练集合 A bracket sequence is a string containing only characters “(” and “)”.

2020-10-29
1

JAVA大数几算--HDU 2054 A == B ?

Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".

2020-10-28
1

JAVA大数--POJ 1715 大菲波数

Fibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。

2020-10-28
1

图论--网络流--费用流POJ 2195 Going Home

On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to an adjacen...

2020-10-28
1

图论--2-SAT--POJ 3905 Perfect Election

Perfect Election Time Limit: 5000MS         Memory Limit: 65536K Total Submissions: 964         Accepted: 431 Description

2020-10-28
1

图论--2-SAT--HDOJ/HDU 1824 Let's go home

Problem Description 小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。                         —— 余光中

2020-10-28
1

图论--差分约束--POJ 3169 Layout(超级源汇建图)

Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N standing along a straight lin...

2020-10-28
1