小坏蛋_千千

I was caught in a heavy rain!

山东省第八届 ACM 省赛 fireworks (组合数+逆元)

Description Hmz likes to play fireworks, especially when they are put regularly. Now he puts some fireworks in a line. This time he put a trig...

2017-05-23 16:52:38

阅读数:557

评论数:0

山东省第八届 ACM 省赛 Parity check (规律、水)

Description Fascinated with the computer games, Gabriel even forgets to study. Now she needs to finish her homework, and there is an easy problem: ...

2017-05-23 16:27:10

阅读数:440

评论数:0

山东省第八届 ACM 省赛 Quadrat (找规律)

Description It is well-known that for any n there are exactly four n-digit numbers (including ones with leading zeros) that are self-squares: the l...

2017-05-23 15:58:53

阅读数:630

评论数:0

Codeforces 794 C. Naming Company (贪心)

Description Oleg the client and Igor the analyst are good friends. However, sometimes they argue over little things. Recently, they started a new c...

2017-05-13 21:05:43

阅读数:363

评论数:0

山东省第八届 ACM 省赛 company (贪心、水)

Problem Description There are n kinds of goods in the company, with each of them has a inventory of cnti and direct unit benefit vali. Now you find...

2017-05-09 19:51:11

阅读数:1012

评论数:0

山东省第八届 ACM 省赛 CF (01背包、水)

Problem Description LYD loves codeforces since there are many Russian contests. In an contest lasting for T minutes there are n problems, and for t...

2017-05-09 19:30:19

阅读数:1113

评论数:0

山东省第八届 ACM 省赛 sum of power (求和、水)

Problem Description Calculate ∑ni=1im mod (1000000000+7)\sum_{i=1}^ni^m~mod~(1000000000+7) for given n,m. Input Input contains two integers n,m(1...

2017-05-09 19:04:21

阅读数:519

评论数:0

山东省第八届 ACM 省赛 quadratic equation (水、坑)

Problem Description With given integers a,b,c, you are asked to judge whether the following statement is true: “For any x, if a⋅x2+b⋅x2+c=0a⋅x^2+b⋅...

2017-05-09 18:48:38

阅读数:642

评论数:0

UPC 1017 Easy Tree Query (二叉搜索树)

题目描述 You are given a binary search tree with depth k, whose nodes are valued from 1 to (2k − 1) and then Q queries. For each query, you are gi...

2017-05-05 10:54:16

阅读数:379

评论数:0

山东省第七届 ACM 省赛 Feed the monkey (dp)

Problem Description Alice has a monkey, she must feed fruit to the monkey every day.She has three kinds of fruits, bananas, peaches and apples. Eve...

2017-05-04 17:40:26

阅读数:483

评论数:0

POJ 2926 Requirements (空间最远曼哈顿距离)

Description An undergraduate student, realizing that he needs to do research to improve his chances of being accepted to graduate school, decided t...

2017-05-04 15:05:36

阅读数:349

评论数:0

HDU 4622 Reincarnation (区间不相同子串个数:字符串哈希 | 后缀数组 | 后缀自动机)

Problem Description Now you are back,and have a task to do: Given you a string s consist of lower-case English letters only,denote f(s) as the...

2017-05-03 17:16:21

阅读数:422

评论数:0

HDU 4333 Revolving Digits (扩展KMP)

Problem Description One day Silence is interested in revolving the digits of a positive integer. In the revolving operation, he can put several las...

2017-05-03 16:04:13

阅读数:280

评论数:0

山东省第二届 ACM 省赛 Simple Game (Nim+Bash)

Problem Description Here is a simple game. In this game, there are several piles of stones and two players. The two players play in turn. In each t...

2017-05-03 09:36:25

阅读数:420

评论数:0

POJ 1679 The Unique MST (次小生成树)

Description Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connect...

2017-05-02 20:52:26

阅读数:268

评论数:0

HDU 5976 Detachment (逆元)

Problem Description In a highly developed alien society, the habitats are almost infinite dimensional space. In the history of this planet,the...

2017-05-02 16:15:45

阅读数:495

评论数:0

HDU 5974 A Simple Math Problem (数论+解方程组)

Problem Description Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Common Multiple (X, Y) ...

2017-05-02 10:46:45

阅读数:390

评论数:0

多校联合集训 G. 数字逻辑练习题 (普通计算)

题目描述 原码、反码、补码都是一样的,都是正数本身。 对于负数: 原码是符号位为 1,数值部分取绝对值的二进制。 反码是符号位为 1,其它位是原码取反。 补码是符号位为 1,其它位是原码取反,未位加 1。 输入一个 64bit 十进制整...

2017-05-01 21:25:05

阅读数:430

评论数:0

多校联合集训 A. 字符串“水”题 (状压+哈希)

题目描述 给出一个长度为 n 的字符串(1<=n<=100000),求有多少个连续字串中所有的字母都出现了偶数次。 输入 第一行一个正整数 T,表示数据组数(1 <= T <= 10)。 接下来 T 行,每行有一个只包含小写字母的字符串。 输出 ...

2017-05-01 20:59:22

阅读数:239

评论数:0

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