摘要: 日常绝望系列 Questionnaire HDU - 6075 In order to get better results in official ACM/ICPC contests, the team leader comes up with a questionnaire. He asked 阅读全文
posted @ 2017-08-04 09:05 暴力都不会的蒟蒻 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 5020: Palindromic Paths Time Limit(Common/Java):10000MS/30000MS Memory Limit:65536KByteTotal Submit: 8 Accepted:4 Description Given an N×N grid of fie 阅读全文
posted @ 2017-08-02 23:03 暴力都不会的蒟蒻 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 推荐一个大佬的两篇文章 莫比乌斯函数 读贾志鹏线性筛有感 (莫比乌斯函数的应用) 莫比乌斯函数(Möbius function)是指以下的函数: 在这里,λ(n)是刘维尔函数 莫比乌斯函数是一个数论函数,它同时也是一个积性函数(i.e.μ(ab) =μ(a)μ(b), a,b互质) 当n不等于1时, 阅读全文
posted @ 2017-08-02 13:47 暴力都不会的蒟蒻 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: 4475: The Coolest Sub-matrix Time Limit(Common/Java):4000MS/12000MS Memory Limit:65536KByteTotal Submit: 50 Accepted:13 Description Given an N*N matri 阅读全文
posted @ 2017-08-02 12:47 暴力都不会的蒟蒻 阅读(198) 评论(0) 推荐(0) 编辑
摘要: D - Game on Tree Time limit : 2sec / Memory limit : 256MB Score : 1100 points Problem Statement There is a tree with N vertices numbered 1,2,…,N. The 阅读全文
posted @ 2017-08-02 09:34 暴力都不会的蒟蒻 阅读(644) 评论(0) 推荐(0) 编辑
摘要: B. The number on the board time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Some natural 阅读全文
posted @ 2017-08-01 09:58 暴力都不会的蒟蒻 阅读(465) 评论(0) 推荐(0) 编辑
摘要: A. GukiZ and Contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Professor GukiZ lik 阅读全文
posted @ 2017-07-31 21:19 暴力都不会的蒟蒻 阅读(476) 评论(0) 推荐(0) 编辑
摘要: A. The Useless Toy time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Walking through the st 阅读全文
posted @ 2017-07-31 09:34 暴力都不会的蒟蒻 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 模版题的世界 题目1 : 无根数变有根树 题目1 : 无根数变有根树 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 给定一棵包含 N 个节点的无根树,小Hi想知道如果指定其中某个节点 K 为根,那么每个节点的父节点是谁? 输入 第一行包含一个整数 N 和 K。1 ≤  阅读全文
posted @ 2017-07-30 14:34 暴力都不会的蒟蒻 阅读(449) 评论(0) 推荐(0) 编辑
摘要: Clarke is a patient with multiple personality disorder. One day, Clarke turned into a learner of geometric. When he did a research with polygons, he f 阅读全文
posted @ 2017-07-30 12:07 暴力都不会的蒟蒻 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Crossings Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100463 Description Given a permutation P of {0, 1, ..., n − 1}, we de 阅读全文
posted @ 2017-07-30 09:59 暴力都不会的蒟蒻 阅读(278) 评论(0) 推荐(0) 编辑
摘要: A -- A simple math problem Time Limit:2s Memory Limit:128MByte Submissions:1599Solved:270 A -- A simple math problem Time Limit:2s Memory Limit:128MBy 阅读全文
posted @ 2017-07-30 09:25 暴力都不会的蒟蒻 阅读(342) 评论(0) 推荐(0) 编辑
摘要: G - Grade Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and ask him to grade each mushroom according to 阅读全文
posted @ 2017-07-29 11:00 暴力都不会的蒟蒻 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 桌上有十个苹果,要把这十个苹果放到九个抽屉里,无论怎样放,我们会发现至少会有一个抽屉里面至少放两个苹果。这一现象就是我们所说的“抽屉原理”。 抽屉原理的一般含义为:“如果每个抽屉代表一个集合,每一个苹果就可以代表一个元素,假如有n+1个元素放到n个集合中去,其中必定有一个集合里至少有两个元素。” 抽 阅读全文
posted @ 2017-07-28 23:54 暴力都不会的蒟蒻 阅读(698) 评论(0) 推荐(0) 编辑
摘要: Regular polygon Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 177 Accepted Submission(s): 74 Pr 阅读全文
posted @ 2017-07-27 18:44 暴力都不会的蒟蒻 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 弱校也不打多校,自己也可以咸鱼嘛。水一水,玩一玩 Add More Zero Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 643 Acce 阅读全文
posted @ 2017-07-26 14:12 暴力都不会的蒟蒻 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 闲来无事一套CF啊,我觉得这几个题还是有套路的,但是很明显,这个题并不难 A. Pineapple Incident time limit per test 1 second memory limit per test 256 megabytes input standard input outpu 阅读全文
posted @ 2017-07-26 14:08 暴力都不会的蒟蒻 阅读(466) 评论(0) 推荐(0) 编辑
摘要: A. Sasha and Sticks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It's one more school 阅读全文
posted @ 2017-07-25 10:05 暴力都不会的蒟蒻 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 甚至DFS也能过吧 Mayor's posters POJ - 2528 The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been plac 阅读全文
posted @ 2017-07-24 13:03 暴力都不会的蒟蒻 阅读(454) 评论(0) 推荐(0) 编辑
摘要: Different GCD Subarray Query Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1328 Accepted Submis 阅读全文
posted @ 2017-07-24 12:50 暴力都不会的蒟蒻 阅读(368) 评论(0) 推荐(0) 编辑