随笔分类 - 数学
摘要: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
阅读全文
摘要: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
阅读全文
摘要:F2. Wrong Answer on test 233 (Hard Version) Your program fails again. This time it gets "Wrong answer on test 233" . This is the harder version of the
阅读全文
摘要:C. Tile Painting Ujan has been lazy lately, but now has decided to bring his yard to good shape. First, he decided to paint the path from his house to
阅读全文
摘要:D. Power Products You are given n positive integers a1,…,an, and an integer k≥2. Count the number of pairs i,j such that 1≤i using namespace std; cons
阅读全文
摘要:C. p binary Vasya will fancy any number as long as it is an integer power of two. Petya, on the other hand, is very conservative and only likes a sing
阅读全文
摘要:F. Bits And Pieces 题面 You are given an array 𝑎 of 𝑛 integers. You need to find the maximum value of 𝑎𝑖|(𝑎𝑗&𝑎𝑘) over all triplets (𝑖,𝑗,𝑘) su
阅读全文
摘要:G. Polygons Description You are given two integers 𝑛 and 𝑘. You need to construct 𝑘 regular polygons having same circumcircle, with distinct number
阅读全文
摘要:BC都被hack的人生,痛苦。 下面是题解的表演时间: A. QAQ "QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth. Now Diamond h
阅读全文
摘要:A. Short Program link http://codeforces.com/contest/878/problem/A describe Petya learned a new programming language CALPAS. A program in this language
阅读全文
摘要:D. Winter is here 题目连接: http://codeforces.com/contest/839/problem/D Description Winter is here at the North and the White Walkers are close. John Snow
阅读全文
摘要:Lucky Coins 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5985 Description Bob has collected a lot of coins in different kinds. He wants to know whi
阅读全文
摘要:D. Anton and School 2 题目连接: http://codeforces.com/contest/785/problem/D Description As you probably know, Anton goes to school. One of the school subj
阅读全文
摘要:D. Artsem and Saunders 题目连接: http://codeforces.com/contest/765/problem/D Description Artsem has a friend Saunders from University of Chicago. Saunders
阅读全文
摘要:B. Chloe and the sequence 题目链接 http://codeforces.com/contest/743/problem/B 题面 Chloe, the same as Vladik, is a competitive programmer. She didn't have
阅读全文
摘要:D. Taxes 题目链接 http://codeforces.com/contest/735/problem/D 题面 Mr. Funt now lives in a country with a very specific tax laws. The total income of mr. Fu
阅读全文
摘要:GCD is Funny 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5902 Description Alex has invented a new game for fun. There are n integers at a board an
阅读全文
摘要:Taco Stand 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/taco stand Description An editorial for this problem is availabl
阅读全文
摘要:Mr. Pippo's Pizza 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/mr pippos pizza Description Mr. Pippo wants to start a ne
阅读全文
摘要:Back to Square 1 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/back to square 1 Description The game “Back to Square 1” i
阅读全文