随笔分类 - Codeforces
摘要:链接: https://codeforces.com/contest/1228/problem/A 题意: You have two integers l and r. Find an integer x which satisfies the conditions below: l≤x≤r. Al
阅读全文
摘要:链接: https://codeforces.com/contest/1234/problem/E 题意: Let's define pi(n) as the following permutation: [i,1,2,…,i−1,i+1,…,n]. This means that the i th
阅读全文
摘要:链接: https://codeforces.com/contest/1234/problem/D 题意: You are given a string s consisting of lowercase Latin letters and q queries for this string. Re
阅读全文
摘要:链接: https://codeforces.com/contest/1234/problem/C 题意: You are given a system of pipes. It consists of two rows, each row consists of n pipes. The top
阅读全文
摘要:链接: https://codeforces.com/contest/1234/problem/B2 题意: The only difference between easy and hard versions are constraints on n and k. You are messagin
阅读全文
摘要:链接: https://codeforces.com/contest/1234/problem/A 题意: You are both a shop keeper and a shop assistant at a small nearby shop. You have n goods, the i
阅读全文
摘要:链接: https://vjudge.net/problem/HYSBZ 4033 题意: 有一棵点数为N的树,树边有边权。给你一个在0~N之内的正整数K,你要在这棵树中选择K个点,将其染成黑色,并 将其他的N K个点染成白色。将所有点染色后,你会获得黑点两两之间的距离加上白点两两之间距离的和的收益
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 916C 题意: Jamie has recently found undirected weighted graphs with the following properties very interesting:
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 916B 题意: Jamie is preparing a Codeforces round. He has got an idea for a problem, but does not know how to s
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 916A 题意: Jamie loves sleeping. One day, he decides that he needs to wake up at exactly hh: mm. However, he h
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 721D 题意: Recently Maxim has found an array of n integers, needed by no one. He immediately come up with idea
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 721C 题意: Recently Irina arrived to one of the most famous cities of Berland — the Berlatov city. There are n
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 721B 题意: Vanya is managed to enter his favourite site Codehorses. Vanya uses n distinct passwords for sites
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 721A 题意: Recently Adaltik discovered japanese crosswords. Japanese crossword is a picture, represented as a
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 585B 题意: The mobile application store has a new game called "Subway Roller". The protagonist of the game Phi
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 437C 题意: On Children's Day, the child got a toy from Delayyy as a present. However, the child is so naughty
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 449B 题意: Jzzhu is the president of country A. There are n cities numbered from 1 to n in his country. City 1
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 687A 题意: Recently, Pari and Arya did some research about NP Hard problems and they found the minimum vertex
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 682C 题意: Alyona decided to go on a diet and went to the forest to get some apples. There she unexpectedly fo
阅读全文
摘要:链接: https://vjudge.net/problem/CodeForces 707B 题意: Masha wants to open her own bakery and bake muffins in one of the n cities numbered from 1 to n. Th
阅读全文

浙公网安备 33010602011771号