原创 [codeforces1200E]Compress Words

time limit per test : 1 second memory limit per test : 256 megabytes 分數:2000,但是我覺得這個題挺神的。 Amugae has a sentence con

原创 [codeforces938D]Buy a Ticket

time limit per test : 2 seconds memory limit per test : 256 megabytes Musicians of a popular band “Flayer” have ann

原创 [codeforces1217D]Coloring Edges

time limit per test : 1 second memory limit per test : 256 megabytes 分數:2000 You are given a directed graph with nn

原创 [codeforces1214D]Treasure Island

time limit per test : 1 second memory limit per test : 512 megabytes 分數:1800 但是感覺確實有難度() All of us love treasures,

原创 [gym102012K]Rikka with Ants

time limit per test : 4.0 s memory limit per test : 1024 MB Every time when Rikka faces to a great nature sight, sh

原创 [HDU5573]Binary Tree

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 分數:2500,構造還是比較難的 Problem Descripti

原创 [codeforces28A]Bender Problem

time limit per test : 2 seconds memory limit per test : 256 megabytes Robot Bender decided to make Fray a birthday

原创 [hdu5584]LCM Walk

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description A frog has jus

原创 [codeforces1196F]K-th Path

time limit per test : 2.5 seconds memory limit per test : 256 megabytes You are given a connected undirected weight

原创 [codeforces1208D]Restore Permutation

time limit per test : 2 seconds memory limit per test : 256 megabytes An array of integers p1,p2,…,pnp_1,p_2,…,p_np

原创 [codeforces23C]Oranges and Apples

time limit per test : 1.5 seconds memory limit per test : 256 megabytes 分數:2500(補的有趣的老題) In 2N − 12N - 12N − 1 boxe

原创 [gym102222K]Vertex Covers

time limit per test : 10.0 s memory limit per test : 256 MB In graph theory, a vertex cover of a graph GGG is a set

原创 [codeforces1203F1]Complete the Projects (easy version)

time limit per test : 2 seconds memory limit per test : 256 megabytes 分數:2100 The only difference between easy and

原创 [hdu6567]Cotree

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) 分數:2500 Problem Description Avin

原创 [codeforces906E]Reverses

time limit per test : 2 seconds memory limit per test : 256 megabytes 分數:3200 Hurricane came to Berland and to subu