08 2016 档案
摘要:2016暑假总结 暑假已经结束,是时候写一波总结(流水账)了。 7月14号返校,先是16号打了一波CCCC,虽然比初赛发挥好一点,然而还是没拿到奖,sad... 总的来讲,今年比去年还是要充实很多的,去年暑假由于个人原因一直没有集中精力来训练,赛后没有及时补题和改题,实力没有得到本质提升,导致去年在
阅读全文
摘要:Bus to Udayland 题目链接: http://codeforces.com/contest/711/problem/A Description Input Output Examples Note 题意: 找有没有相邻座位. 题解: 暴力判断一下即可. 代码: cpp include i
阅读全文
摘要:Chris and Magic Square 题目链接: http://codeforces.com/contest/711/problem/B Description Input Output Examples Note 题意: 在n n的矩阵中填充一个数,使得每行、每列、对角线的和均相等. 题解
阅读全文
摘要:Coloring Trees 题目链接: http://codeforces.com/contest/711/problem/C Description Input Output Examples Note 题意: n个树中有部分未染色,现要使得用最小代价染色完,且数串可以恰好划分为k段. 题解:
阅读全文
摘要:Lifting the Stone 题目链接: http://acm.hust.edu.cn/vjudge/contest/130510 problem/G Description There are many secret openings in the floor which are cover
阅读全文
摘要:Labyrinth 题目链接: http://acm.hust.edu.cn/vjudge/contest/130510 problem/E Description The northern part of the Pyramid contains a very large and complica
阅读全文
摘要:Piggy Bank 题目链接: http://acm.hust.edu.cn/vjudge/contest/130510 problem/F Description Before ACM can do anything, a budget must be prepared and the nece
阅读全文
摘要:Equipment Box 题目链接: http://acm.hust.edu.cn/vjudge/contest/130510 problem/B Description There is a large room in the Pyramid called Room of No Return.
阅读全文
摘要:Points 题目链接: http://acm.hust.edu.cn/vjudge/contest/130303 problem/E Description http://7xjob4.com1.z0.glb.clouddn.com/4c9abc79e61f4d543441b48cb0cf6bbe
阅读全文
摘要:Frame 题目链接: http://acm.hust.edu.cn/vjudge/contest/130303 problem/D Description http://7xjob4.com1.z0.glb.clouddn.com/17e6574035df3f9b6d1fc6dfd8b650ac
阅读全文
摘要:Banks 题目链接: http://acm.hust.edu.cn/vjudge/contest/130303 problem/A Description http://7xjob4.com1.z0.glb.clouddn.com/8ce645bf3da25e2731b2fea4c21a985b
阅读全文
摘要:Triples 题目链接: http://acm.hust.edu.cn/vjudge/contest/130303 problem/H Description http://7xjob4.com1.z0.glb.clouddn.com/4c05ed01e62e808388fc90e37554d58
阅读全文
摘要:Decoding Morse Sequences 题目链接: http://acm.hust.edu.cn/vjudge/contest/129783 problem/D Description Before the digital age, the most common "binary" cod
阅读全文
摘要:Fill the Cisterns! 题目链接: http://acm.hust.edu.cn/vjudge/contest/129783 problem/F Description During the next century certain regions on earth will expe
阅读全文
摘要:Two Arithmetic Progressions 题目链接: http://codeforces.com/contest/710/problem/D Description You are given two arithmetic progressions: a1k + b1 and a2l
阅读全文
摘要:Generate a String 题目链接: http://codeforces.com/contest/710/problem/E Description zscoder wants to generate an input file for some programming competiti
阅读全文
摘要:Weird Numbers 题目链接: http://acm.hust.edu.cn/vjudge/contest/129733 problem/F Description Binary numbers form the principal basis of computer science. Mo
阅读全文
摘要:胜利大逃亡(续) 题目链接: http://acm.hust.edu.cn/vjudge/contest/71151 problem/D Description Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)…… 这次魔王汲取了上次的教训,把Ignatius关在一个n m的地牢里,并在
阅读全文
摘要:Key Task 题目链接: http://acm.hust.edu.cn/vjudge/contest/129733 problem/D Description The Czech Technical University is rather old you already know that i
阅读全文
摘要:Strange Billboard 题目链接: http://acm.hust.edu.cn/vjudge/contest/129733 problem/A Description The marketing and public relations department of the Czech
阅读全文
摘要:Rectangular Polygons 题目链接: http://acm.hust.edu.cn/vjudge/contest/129733 problem/G Description In this problem, we will help the Faculty of Civil Engin
阅读全文
摘要:Vasiliy's Multiset 题目链接: http://codeforces.com/contest/706/problem/D Description Input Output Examples Source Codeforces Round 367 (Div. 2) 题意: 维护一个mu
阅读全文
摘要:Hard problem 题目链接: http://codeforces.com/contest/706/problem/C Description The first line of the input contains a single integer n (2 ≤ n ≤ 100 000) —
阅读全文
摘要:Interesting drink 题目链接: http://codeforces.com/contest/706/problem/B Description Input Output Examples input 5 3 10 8 6 11 4 1 10 3 11 output 0 4 1 5 S
阅读全文
摘要:Beru taxi 题目链接: http://codeforces.com/contest/706/problem/A Description Input Output Examples input 0 0 2 2 0 1 0 2 2 output 1.00000000000000000000 in
阅读全文
摘要:Pythagorean Triples 题目链接: http://codeforces.com/contest/707/problem/C Description Input Output Examples input 3 output 4 5 input 6 output 8 10 input 1
阅读全文
摘要:Bakery 题目链接: http://codeforces.com/contest/707/problem/B Description Input Output Examples input 5 4 2 1 2 5 1 2 3 2 3 4 1 4 10 1 5 output 3 input 3 1
阅读全文
摘要:Brain's Photos 题目链接: http://codeforces.com/contest/707/problem/A Description Input Output Examples Source Codeforces Round 368 (Div. 2) 题意: 判断给出的图形(像素
阅读全文
摘要:The Grille 题目链接: http://acm.hust.edu.cn/vjudge/problem/26634 Description http://7xjob4.com1.z0.glb.clouddn.com/a7d33cb3303ea18c9e6f3de676f242a6 Input
阅读全文
摘要:Unique Encryption Keys 题目链接: http://acm.hust.edu.cn/vjudge/problem/26633 Description http://7xjob4.com1.z0.glb.clouddn.com/bced90d15c27e75270cc759651d
阅读全文
摘要:Stack Machine Executor 题目链接: http://acm.hust.edu.cn/vjudge/problem/26628 Description http://7xjob4.com1.z0.glb.clouddn.com/18113a5cf78f108997460e36f70
阅读全文
摘要:Stack Machine Executor 题目链接: http://acm.hust.edu.cn/vjudge/problem/26636 Description http://7xjob4.com1.z0.glb.clouddn.com/7df4b3c52d86b5aca54ec47060e
阅读全文
摘要:Counting Intersections 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5862 Description Given some segments which are paralleled to the coordina
阅读全文
摘要:Road 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5861 Description There are n villages along a high way, and divided the high way into n 1 s
阅读全文
摘要:Median 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5857 Description There is a sorted sequence A of length n. Give you m queries, each one c
阅读全文
摘要:Hard problem 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5858 Description cjj is fun with math problem. One day he found a Olympic Mathemati
阅读全文
摘要:Water problem 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5867 Description If the numbers 1 to 5 are written out in words: one, two, three,
阅读全文
摘要:Linear Ecosystem 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/B Description http://7xjob4.com1.z0.glb.clouddn.com/99b0fe905e5bd89a24c882
阅读全文
摘要:Separating Pebbles 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/H Description http://7xjob4.com1.z0.glb.clouddn.com/1e1638de114645053463
阅读全文
摘要:Robots 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/K Description http://7xjob4.com1.z0.glb.clouddn.com/168817810b54cfa4ffaebf73d3d1b0c5
阅读全文
摘要:Discrete Logarithm Problem 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/D Description http://7xjob4.com1.z0.glb.clouddn.com/42600d1bedc3
阅读全文
摘要:Least Crucial Node 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/C Description http://7xjob4.com1.z0.glb.clouddn.com/e15d7d11650607e5795d
阅读全文
摘要:Parentheses 题目链接: http://acm.hust.edu.cn/vjudge/contest/127401 problem/A Description http://7xjob4.com1.z0.glb.clouddn.com/9cf04e507e13a41d77bca3a75bb
阅读全文
摘要:abs 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5778 Description Given a number x, ask positive integer y≥2, that satisfy the following conditions
阅读全文
摘要:sum 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5776 Description Given a sequence, you're asked whether there exists a consecutive subsequence who
阅读全文
摘要:NanoApe Loves Sequence Ⅱ 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5806 Description NanoApe, the Retired Dog, has returned back to prepare for f
阅读全文
摘要:NanoApe Loves Sequence 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5805 Description NanoApe, the Retired Dog, has returned back to prepare for the
阅读全文
摘要:Acperience 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5734 Description Deep neural networks (DNN) have shown significant improvements in several
阅读全文
摘要:Lweb and String 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5842 Description Lweb has a string S. Oneday, he decided to transform this string to a
阅读全文
摘要:Zhu and 772002 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5833 Description Zhu and 772002 are both good at math. One day, Zhu wants to test the a
阅读全文
摘要:Danganronpa 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5835 Description Chisa Yukizome works as a teacher in the school. She prepares many gifts,
阅读全文
摘要:Special Tetrahedron 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5839 Description Given n points which are in three dimensional space(without repet
阅读全文
摘要:A water problem 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5832 Description Two planets named Haha and Xixi in the universe and they were created
阅读全文
摘要:Wooden Signs 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/E Description http://7xjob4.com1.z0.glb.clouddn.com/0f10204481da21e62f8c145939
阅读全文
摘要:Canvas Painting 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/C Description http://7xjob4.com1.z0.glb.clouddn.com/a4717ad58f73aa6ff84a1ab
阅读全文
摘要:Sheldon Numbers 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/H Description According to Sheldon Cooper, the best number is 73. In his ow
阅读全文
摘要:Saint John Festival 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/J Description Input The input file contains several test cases, each of
阅读全文
摘要:Dice Cup 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/D Description In many table top games it is common to use different dice to simula
阅读全文
摘要:Game of Cards 题目链接: http://acm.hust.edu.cn/vjudge/contest/127406 problem/G Description Input The input file contains several test cases, each of them
阅读全文
摘要:Chess 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5724 Description Alice and Bob are playing a special chess game on an n × 20 chessboard. There a
阅读全文
摘要:Wow! Such Sequence! 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=4893 Description Input For each Type 2 ("query sum") operation, output one line co
阅读全文
摘要:Nice boat 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=4902 Description There is an old country and the king fell in love with a devil. The devil a
阅读全文
摘要:Rikka with Sequence 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5828 Description As we know, Rikka is poor at math. Yuta is worrying about this si
阅读全文
摘要:Ball 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5821 Description ZZX has a sequence of boxes numbered 1,2,...,n. Each box can contain at most one
阅读全文
摘要:physics 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5826 Description There are n balls on a smooth horizontal straight track. The track can be con
阅读全文
摘要:Rikka with Parenthesis II 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5831 Description As we know, Rikka is poor at math. Yuta is worrying about t
阅读全文
摘要:Hearthstone 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5816 Description Hearthstone is an online collectible card game from Blizzard Entertainmen
阅读全文
摘要:Book Borders 题目链接: http://acm.hust.edu.cn/vjudge/contest/127407 problem/B Description A book is being typeset using a fixed width font and a simple gr
阅读全文
摘要:Kernel Knights 题目链接: http://acm.hust.edu.cn/vjudge/contest/127407 problem/K Description Jousting is a medieval contest that involves people on horseba
阅读全文
摘要:Digit Division 题目链接: http://acm.hust.edu.cn/vjudge/contest/127407 problem/D Description We are given a sequence of n decimal digits. The sequence need
阅读全文
摘要:ASCII Addition 题目链接: http://acm.hust.edu.cn/vjudge/contest/127407 problem/A Description Nowadays, there are smartphone applications that instantly tra
阅读全文
摘要:Balls and Boxes 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5810 Description Mr. Chopsticks is interested in random phenomena, and he conducts an
阅读全文
摘要:Elegant Construction 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5813 Description Being an ACMer requires knowledge in many fields, because proble
阅读全文
摘要:Joint Stacks 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5818 Description A stack is a data structure in which all insertions and deletions of ent
阅读全文
摘要:Layout 题目链接: Rhttp://acm.hust.edu.cn/vjudge/contest/122685 problem/S Description cpp include include include include include include include include i
阅读全文
摘要:0 or 1 题目链接: Rhttp://acm.hust.edu.cn/vjudge/contest/122685 problem/R Description cpp include include include include include include include include i
阅读全文
摘要:Extended Traffic 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/O Description Dhaka city is getting crowded and noisy day by day. Certain
阅读全文
摘要:A Walk Through the Forest 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1142 Description Jimmy experiences a lot of stress at work these days, espec
阅读全文
摘要:Marriage Match IV 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/Q Description Do not sincere non interference。 Like that show, now starva
阅读全文
摘要:昂贵的聘礼 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/M Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险
阅读全文
摘要:Subway 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/L Description You have just moved from a quiet Waterloo neighbourhood to a big, nois
阅读全文
摘要:Tram 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/N Description Tram network in Zagreb consists of a number of intersections and rails c
阅读全文
摘要:Candies 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/J Description During the kindergarten days, flymouse was the monitor of his class.
阅读全文
摘要:Invitation Cards 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/J Description In the age of television, not many people attend theater per
阅读全文
摘要:Arbitrage 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/I Description Arbitrage is the use of discrepancies in currency exchange rates to
阅读全文
摘要:Cow Contest 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/H Description Input Line 1: Two space separated integers: N and M Lines 2..M+1:
阅读全文
摘要:MPI Maelstrom 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/G Description BIT has recently taken delivery of their new supercomputer, a 3
阅读全文
摘要:Wormholes 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/F Description While exploring his many farms, Farmer John has discovered a number
阅读全文
摘要:Currency Exchange 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/E Description Several currency exchange points are working in our city. L
阅读全文
摘要:Silver Cow Party 题目链接: http://acm.hust.edu.cn/vjudge/contest/122685 problem/D Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently num
阅读全文
摘要:The Unique MST 题目链接: http://acm.hust.edu.cn/vjudge/contest/124434 problem/J Description Given a connected undirected graph, tell if its minimum spanni
阅读全文
摘要:Borg Maze 题目链接: http://acm.hust.edu.cn/vjudge/contest/124434 problem/I Description The Borg is an immensely powerful race of enhanced humanoids from t
阅读全文
摘要:The Great Pan 题目链接: http://acm.hust.edu.cn/vjudge/contest/123554 problem/D Description Input Input contains several test cases, please process till EO
阅读全文
摘要:Monster 题目链接: http://acm.hust.edu.cn/vjudge/contest/123554 problem/I Description Teacher Mai has a kingdom. A monster has invaded this kingdom, and Te
阅读全文
摘要:Zhenya moves from parents 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/C Description Zhenya moved from his parents’ home to study in oth
阅读全文
摘要:Palindromes and Super Abilities 2 题目链接: http://acm.hust.edu.cn/vjudge/contest/126823 problem/E Description Dima adds letters s 1, …, s n one by one to
阅读全文
摘要:Richness of binary words 题目链接: http://acm.hust.edu.cn/vjudge/contest/126823 problem/B Description For each integer i from 1 to n, you must print a str
阅读全文
摘要:Richness of words 题目链接: http://acm.hust.edu.cn/vjudge/contest/126823 problem/J Description For each integer i from 1 to n, you must print a string s i
阅读全文
摘要:Traffic Jam in Flower Town 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/I Description Having returned from Sun City, Dunno told all his
阅读全文
摘要:The Debut Album 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/G Description Pop group “Pink elephant” entered on recording their debut al
阅读全文
摘要:Pair: normal and paranormal 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/H Description If you find yourself in Nevada at an abandoned nu
阅读全文
摘要:Scarily interesting! 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/D Description This year at Monsters University it is decided to arrang
阅读全文
摘要:Zhenya moves from the dormitory 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/D Description After moving from his parents’ place Zhenya h
阅读全文
摘要:Donald is a postman 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/L Description Donald Duck works as a postman for the Walt Disney Studio
阅读全文
摘要:About Grisha N. 题目链接: http://acm.hust.edu.cn/vjudge/contest/126546 problem/A Description Grisha N. told his two teammates that he was going to solve a
阅读全文
摘要:原文地址:https://www.byvoid.com/blog/biconnect 图的割点、桥与双连通分支 [点连通度与边连通度] 在一个无向连通图中,如果有一个顶点集合,删除这个顶点集合,以及这个集合中所有顶点相关联的边以后,原图变成多个连通块,就称这个点集为割点集合。一个图的点连通度的定义为
阅读全文
摘要:Windows 10 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5802 Description Long long ago, there was an old monk living on the top of a mountain. Rece
阅读全文
摘要:A Simple Chess 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5794 Description There is a n×m board, a chess want to go to the position (n,m) from th
阅读全文
摘要:A Boring Question 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5793 Description Input The first line of the input contains the only integer T, Then
阅读全文
摘要:A Simple Nim 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5795 Description Two players take turns picking candies from n heaps,the player who picks
阅读全文
摘要:背包问题九讲 v1.0 目录 第一讲 01背包问题 第二讲 完全背包问题 第三讲 多重背包问题 第四讲 混合三种背包问题 第五讲 二维费用的背包问题 第六讲 分组的背包问题 第七讲 有依赖的背包问题 第八讲 泛化物品 第九讲 背包问题问法的变化 附:USACO中的背包问题 前言 本篇文章是我(dd_
阅读全文
摘要:转载请注明出处,谢谢http://blog.csdn.net/ACM_cxlove?viewmode=contents by cxlove 首先当然要献上一些非常好的学习资料: 基础博弈的小结:http://blog.csdn.net/acm_cxlove/article/details/78545
阅读全文
摘要:ATM Mechine 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5781 Description Alice is going to take all her savings out of the ATM(Automatic Teller Ma
阅读全文
摘要:K wolf Number 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5787 Description Alice thinks an integer x is a K wolf number, if every K adjacent digit
阅读全文
摘要:World is Exploding 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5792 Description Given a sequence A with length n,count how many quadruple (a,b,c,d
阅读全文
摘要:Two 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5791 Description Alice gets two sequences A and B. A easy problem comes. How many pair of sequence
阅读全文
摘要:Divide the Sequence 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5783 Description Alice has a sequence A, She wants to split A into as much as poss
阅读全文