# 山东省第八届 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...

# 山东省第八届 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: ...

# 山东省第八届 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...

# 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...

# 山东省第八届 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...

# 山东省第八届 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...

# 山东省第八届 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...

# 山东省第八届 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⋅...

# 山东省第七届 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...

# 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...

# 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...

# 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...

# 山东省第二届 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...

# 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...

# 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...

# 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) ...

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

个人资料
等级：
访问量： 36万+
积分： 1万+
排名： 2019
欢迎关注 <千与梦随> 哦！
博客专栏
 那些年,我们一起追过的算法 文章：6篇 阅读：23920
最新评论