随笔分类 - 其他
摘要:F. Coffee Varieties time limit per test1 second memory limit per test256 megabytes This is the easy version of the problem. You can find the hard vers
阅读全文
摘要:D. Irreducible Anagrams time limit per test2 seconds memory limit per test256 megabytes Let's call two strings s and t anagrams of each other if it is
阅读全文
摘要:C. Mind Control time limit per test1 second memory limit per test256 megabytes You and your n−1 friends have found an array of integers a1,a2,…,an. Yo
阅读全文
摘要:A. Even But Not Even time limit per test1 second memory limit per test256 megabytes Let's define a number ebne (even but not even) if and only if its
阅读全文
摘要:C. Everyone is a Winner! On the well known testing system MathForces, a draw of n rating units is arranged. The rating will be distributed according t
阅读全文
摘要:B. PIN Codes A PIN code is a string that consists of exactly 4 digits. Examples of possible PIN codes: 7013, 0000 and 0990. Please note that the PIN c
阅读全文
摘要:A. Sweet Problem the first pile contains only red candies and there are r candies in it, the second pile contains only green candies and there are g c
阅读全文
摘要:C. Dominated Subarray Let's call an array 𝑡 dominated by value 𝑣 in the next situation. At first, array 𝑡 should have at least 2 elements. Now, let
阅读全文
摘要:B. Magic Stick Recently Petya walked in the forest and found a magic stick. Since Petya really likes numbers, the first thing he learned was spells fo
阅读全文
摘要:D. Magic Breeding link http://codeforces.com/contest/878/problem/D description Nikita and Sasha play a computer game where you have to breed some magi
阅读全文
摘要:传递 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5961 Description 我们称一个有向图G是传递的,当且仅当对任意三个不同的顶点a,,若G中有 一条边从a到b且有一条边从b到c ,则G中同样有一条边从a到c。 我们称图G是一个竞赛图,当
阅读全文
摘要:D. Artsem and Saunders 题目连接: http://codeforces.com/contest/765/problem/D Description Artsem has a friend Saunders from University of Chicago. Saunders
阅读全文
摘要:B Boxes 题目连接: http://agc010.contest.atcoder.jp/tasks/agc010_b Description There are N boxes arranged in a circle. The i th box contains Ai stones. Det
阅读全文
摘要:Rubik's Cube 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5836 Description As we all know, Zhu is the wisest man. When Liao was ninety nine years o
阅读全文
摘要:D. Bear and Two Paths 题目连接: http://www.codeforces.com/contest/673/problem/D Description Bearland has n cities, numbered 1 through n. Cities are connec
阅读全文
摘要:A. DZY Loves Physics 题目连接: http://codeforces.com/contest/444/problem/A Description DZY loves Physics, and he enjoys calculating density. Almost everyt
阅读全文
摘要:String 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5672 Description There is a string S.S only contain lower case English character.(10≤length(S)≤
阅读全文
摘要:F. Ace It! 题目连接: http://www.codeforces.com/contest/656/problem/F Description Input The only line of the input is a string of 7 characters. The first c
阅读全文
摘要:E. Out of Controls 题目连接: http://www.codeforces.com/contest/656/problem/E Description You are given a complete undirected graph. For each pair of verti
阅读全文
摘要:C. Without Text 题目连接: http://www.codeforces.com/contest/656/problem/C Description You can preview the image in better quality by the link: http://asse
阅读全文