原创 cf Educational Codeforces Round 80 D. Minimax Problem

原題: D. Minimax Problem time limit per test 5 seconds memory limit per test 512 megabytes input standard input outpu

原创 cf Educational Codeforces Round 80 C. Two Arrays

原題: C. Two Arrays time limit per test 1 second memory limit per test 256 megabytes input standard input output stan

原创 cf Educational Codeforces Round 80 B. Yet Another Meme Problem

原題: B. Yet Another Meme Problem time limit per test 1 second memory limit per test 256 megabytes input standard inp

原创 cf Educational Codeforces Round 60 D. Magic Gems

原題: D. Magic Gems time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandar

原创 LightOJ 1422 Halloween Costumes

原題: Gappu has a very busy weekend ahead of him. Because, next weekend is Halloween, and he is planning to attend as

原创 poj 2955 Brackets

原題: Brackets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17392 Accepted: 9010 Description We give

原创 uva 1331

原題: Triangulation of surfaces has applications in the Finite Element Method of solid mechanics. The objective is to

原创 cf Educational Codeforces Round 78 D. Segment Tree

原題: D. Segment Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output s

原创 uva12166

原題: A mobile is a type of kinetic sculpture constructed to take advantage of the principle of equilibrium. It con-

原创 cf Educational Codeforces Round 79 C. Stack of Presents

原題: C. Stack of Presents time limit per test 1 second memory limit per test 256 megabytes input standard input outp

原创 leetcode 312 戳氣球

原題: 有 n 個氣球,編號爲0 到 n-1,每個氣球上都標有一個數字,這些數字存在數組 nums 中。 現在要求你戳破所有的氣球。每當你戳破一個氣球 i 時,你可以獲得 nums[left] * nums[i] * nums[r

原创 leetcode 1000 合併石頭的最低成本

原題: 有 N 堆石頭排成一排,第 i 堆中有 stones[i] 塊石頭。 每次移動(move)需要將連續的 K 堆石頭合併爲一堆,而這個移動的成本爲這 K 堆石頭的總數。 找出把所有石頭合併成一堆的最低成本。如果不可能,返回

原创 cf Educational Codeforces Round 63 D. Beautiful Array

原題: D. Beautiful Array time limit per test 2 seconds memory limit per test 256 megabytes input standard input outpu

原创 uva 815 Flooded!

To enable homebuyers to estimate the cost of flood insurance, a real-estate firm provides clients with the elevatio

原创 uva 1626

原題: Let us define a regular brackets sequence in the following way: 1… Empty sequence is a regular sequence. 2 …If