随笔分类 -  水题-水题也就考考思维

摘要:题目链接:http://codeforces.com/contest/1095/problem/E 解题心得: 刚开始拿到这个题的时候还真的没什么思路,后来仔细想想还是比较简单的。首先题目要求翻转一个括号就要达到符合括号的匹配规则,那么在匹配完符合条件的括号之后有多出的两个括号向左或者向右。 其次从 阅读全文
posted @ 2018-12-30 19:46 GoldenFingers 阅读(407) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://codeforces.com/contest/1009/problem/D 解题心得: 题意就是给你n个点编号1-n,要你建立m条无向边在两个互质的点之间,最后所有点形成一个连通图。 首先要明白n个点要形成连通图至少需要n-1条边,然后就是找边了,看了一下n和m的范围都是1e 阅读全文
posted @ 2018-07-24 10:40 GoldenFingers 阅读(175) 评论(0) 推荐(0) 编辑
摘要:C. Convenient For Everybodytime limit per test2 seconds memory limit per test256 megabytesProblem DescriptionIn distant future on Eart... 阅读全文
posted @ 2018-03-01 15:19 GoldenFingers 阅读(173) 评论(0) 推荐(0) 编辑
摘要:C. Cave Paintingtime limit per test 1 second memory limit per test 256 megabytesProblem DescriptionImp is watching a documentary about... 阅读全文
posted @ 2018-02-09 12:41 GoldenFingers 阅读(201) 评论(0) 推荐(0) 编辑
摘要:A. Cloning Toystime limit per test 1 second memory limit per test 256 megabytesProblem DescriptionImp likes his plush toy a lot. Rece... 阅读全文
posted @ 2018-02-09 11:45 GoldenFingers 阅读(328) 评论(0) 推荐(0) 编辑
摘要:B. Perfect Numbertime limit per test2 seconds memory limit per test256 megabytesProblem DescriptionWe consider a positive integer perf... 阅读全文
posted @ 2018-02-01 14:27 GoldenFingers 阅读(201) 评论(0) 推荐(0) 编辑
摘要:A- Irrational problem pTime Limit: 2000MS Memory Limit: 262144K 64bit IO Format: %I64d& %I64DescriptionLittle Petya was given this pro... 阅读全文
posted @ 2018-01-28 19:07 GoldenFingers 阅读(234) 评论(0) 推荐(0) 编辑
摘要:传送门:http://codeforces.com/contest/912/problem/BB. New Year’s Evetime limit per test1 second memory limit per test256 megabytesProblem ... 阅读全文
posted @ 2018-01-26 09:32 GoldenFingers 阅读(152) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=2965The Pilots Brothers’ refrigeratorTime Limit: 1000MS Memory Limit: 65536KDescriptionThe game “T... 阅读全文
posted @ 2017-12-02 19:18 GoldenFingers 阅读(94) 评论(0) 推荐(0) 编辑
摘要:B. One Bombtime limit per test1 second memory limit per test256 megabytesProblem DescriptionYou are given a description of a depot. It... 阅读全文
posted @ 2017-11-25 16:49 GoldenFingers 阅读(131) 评论(0) 推荐(0) 编辑
摘要:D - StackWrite a program which reads an expression in the Reverse Polish notation and prints the computational result. An expression ... 阅读全文
posted @ 2017-10-28 16:21 GoldenFingers 阅读(209) 评论(0) 推荐(0) 编辑
摘要:AnanagramsMost crossword puzzle fans are used to anagrams — groups of words with the same letters in different orders — for example OP... 阅读全文
posted @ 2017-09-09 11:07 GoldenFingers 阅读(113) 评论(0) 推荐(0) 编辑
摘要:Andy’s First DictionaryAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the nu... 阅读全文
posted @ 2017-09-09 10:16 GoldenFingers 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Cube paintingWe have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the c... 阅读全文
posted @ 2017-09-07 17:23 GoldenFingers 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Ancient CipherAncient Roman empire had a strong government system with various departments, including a secret service department. Imp... 阅读全文
posted @ 2017-09-01 19:50 GoldenFingers 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Spreadsheet TrackingData in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spre... 阅读全文
posted @ 2017-09-01 11:40 GoldenFingers 阅读(273) 评论(0) 推荐(0) 编辑
摘要:The Dole QueueTime limit 3000 msDescriptionIn a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhi... 阅读全文
posted @ 2017-08-29 17:08 GoldenFingers 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Hangman JudgeTime limit 3000 msDescriptionIn Hangman Judge, you are to write a program that judges a series of Hangman games. For each... 阅读全文
posted @ 2017-08-29 16:01 GoldenFingers 阅读(141) 评论(0) 推荐(0) 编辑
摘要:排列2Problem DescriptionRay又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input每组数据占一行,代表四张卡片上的数字(0using namespace std;const i... 阅读全文
posted @ 2017-07-30 20:47 GoldenFingers 阅读(175) 评论(0) 推荐(0) 编辑
摘要:Monitor题目描述Reca company makes monitors, the most popular of their models is AB999 with the screen size a × b centimeters. Because of s... 阅读全文
posted @ 2017-07-30 20:38 GoldenFingers 阅读(203) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示