关闭
当前搜索:

[置顶] ACM 外挂模板技巧篇

ACM 外挂模板技巧篇...
阅读(235) 评论(0)

[置顶] 数据库课程设计 - Flow Blog

摘要当今,随着Internet的迅速普及以及网络技术的发展,人们的生活也越来越离不开这些东西,忙碌的生活,对着荧光屏幕的一整天,或许有效的记录可以在我们的生命中留下重要的点滴。这样的情况下,一个在线版的个人博客系统就显得非常有必要了。本文论述了个人博客的特点,以及对其系统设计进行分析,并给出其功能以及数据库的设计。...
阅读(15774) 评论(0)

[置顶] 平安夜的祝福

未知的秘密,未知的人儿 我啊,只要有一个人便足够了,能传达得到吗,如果能就好了……...
阅读(28791) 评论(1)

[置顶] 课程设计 --- 黑白棋中的 AI

花了一周的时间好不容易做出的课程设计~ 因为是喜欢秦时明月的关系,所以就叫 墨攻棋阵 啦!还有那么好看的背景, 本文介绍黑白棋AI中算法的设计,另附资源:墨攻棋阵源码...
阅读(21723) 评论(0)

Codeforces 916 C. Jamie and Interesting Graph (构造)

Description Jamie has recently found undirected weighted graphs with the following properties very interesting: The graph is connected and contains exactly n vertices and m edges. All ed...
阅读(26) 评论(0)

Codeforces 913 C. Party Lemonade (思维)

Description A New Year party is not a New Year party without lemonade! As usual, you are expecting a lot of guests, and buying lemonade has already become a pleasant necessity. Your favorite sto...
阅读(72) 评论(0)

Codeforces 560 E. Gerald and Giant Chess (dp,组合数学)

Description Giant chess is quite common in Geraldion. We will not delve into the rules of the game, we’ll just say that the game takes place on an h × w field, and it is painted in two colors, but no...
阅读(72) 评论(0)

2017 ICPC 西安/青岛 站

满月的天空,皎洁的光芒,冷冷清清 时有的路人,走过……...
阅读(138) 评论(0)

计蒜客 ACM-ICPC 2017 Warmup Contest 12

因为等了很久计蒜客上都没有更新,所以目前找不到题目,只能凭借记忆写写咯~全场不在状态抱着不仔细检查直接交让评测机来judge心情的我,最后居然取得了 rk2 ,一定是高手都没有来参加的缘故。 A. Abandoned Animal题意给定一些商品可以在第几家店买的,然后输入购买商品的顺序,问购买序列是否唯一(要求第几家序号不下降)。若唯一,输出 unique ,不唯一输出 ambiguous ,不存...
阅读(146) 评论(0)

Codeforces 892 B. Wrath (递推)

Description Hands that shed innocent blood! There are n guilty people in a line, the i-th of them holds a claw with length Li. The bell rings and every person kills some of people in front of hi...
阅读(411) 评论(0)

Codeforces 892 C. Pride (枚举)

Description You have an array a with length n, you can perform operations. Each operation is like this: choose two adjacent elements from a, say x and y, and replace one of them with gcd(x, y), where...
阅读(369) 评论(0)

Codeforces 892 D. Gluttony (思维)

Description You are given an array a with n distinct integers. Construct an array b by permuting a such that for every non-empty subset of indices S = {x1, x2, …, xk} (1 ≤ xi ≤ n, 0 < k < n) the sums...
阅读(229) 评论(0)

Codeforces 890 D. Boxes And Balls (哈夫曼)

Description Ivan has n different boxes. The first of them contains some balls of n different colors. Ivan wants to play a strange game. He wants to distribute the balls into boxes in such a way...
阅读(111) 评论(0)

Codeforces 890 D. Restoration of string (技巧)

Description A substring of some string is called the most frequent, if the number of its occurrences is not less than number of occurrences of any other substring. You are given a set of strings...
阅读(180) 评论(0)

Codeforces 890 C. Petya and Catacombs (贪心)

Description A very brave explorer Petya once decided to explore Paris catacombs. Since Petya is not really experienced, his exploration is just walking through the catacombs. Catacombs consist o...
阅读(316) 评论(0)

51nod 1350 斐波那契表示 (数学)

Description 每一个正整数都可以表示为若干个斐波那契数的和,一个整数可能存在多种不同的表示方法,例如:14 = 13 + 1 = 8 + 5 + 1,其中13 + 1是最短的表示(只用了2个斐波那契数)。定义F(n) = n的最短表示中的数字个数,F(14) = 2,F(100) = 3(100 = 3 + 8 + 89),F(16) = 2(16 = 8 + 8 = 13 + 3)。...
阅读(131) 评论(0)

FZU 2214 Knapsack problem (超大容量背包)

Description Given a set of n items, each with a weight w[i] and a value v[i], determine a way to choose the items into a knapsack so that the total weight is less than or equal to a given limit B and...
阅读(103) 评论(0)

51nod 1829 函数 (斯特林数)

Description 想知道f:A->B这个函数(其中|A|=n, |B|=m)的所有映射关系要使B的每个元素都要被A的一个元素覆盖到。 数字可能很大你只要输出方案数模1,000,000,007即可。  Input 一共一行两个数,n和m。(1<=n,m<=1,000,000)  Output 一共一行包含一个方案数。  Input示例2 2  Output示例2  思路原题...
阅读(244) 评论(0)

51nod 1836 战忽局的手段 (期望)

Description 众所周知,有一个神秘的组织——战忽局,在暗中保护着我们。在局中任职的官员都有着极强的忽悠技巧,不只能用预言,还能用往事忽悠人。如今某外星间谍已经获得了战忽局曾经参与的n次事件的资料,局座发现了这件事,于是决定再次用忽悠来保证战忽局的安全。局座将发表m次演讲,每一天他都会从n事件中等概率地挑选一件混淆众人,由于局座每天很忙,不能把之前将的事件都记录下来,因此他可能会重复选择...
阅读(90) 评论(0)

ZOJ 3987 Numbers (贪心)

Description DreamGrid has a nonnegative integer nn. He would like to divide nn into mm nonnegative integers a1,a2,…,ama_1, a_2, \dots, a_m and minimizes their bitwise or (i.e. n=a1+a2+⋯+amn=a_1 + a_2...
阅读(264) 评论(0)

Codeforces 122 D. Lucky Transformation (规律)

Description Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 ar...
阅读(103) 评论(0)

Codeforces 122 C. Lucky Sum(分块)

Description Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 ar...
阅读(91) 评论(0)

HDU 1754 I Hate It (线段树,模板)

Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。  Input 本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0Ou...
阅读(104) 评论(0)

Codeforces 877 B. Nikita and string (技巧)

Description One day Nikita found the string containing letters “a” and “b” only. Nikita thinks that string is beautiful if it can be cut into 3 strings (possibly empty) without changing the orde...
阅读(211) 评论(0)
701条 共36页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:335536次
    • 积分:9727
    • 等级:
    • 排名:第2135名
    • 原创:689篇
    • 转载:12篇
    • 译文:0篇
    • 评论:83条
    寻找 Qianqian 遇见 就是幸运
    博客专栏
    欢迎关注 <千与梦随> 哦!
    最新评论