自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

苦鬼·。

我们的裂痕,终将变成故事的花纹

  • 博客(41)
  • 资源 (4)
  • 收藏
  • 关注

原创 一篇题外话

这真的是一点题外话而已,真的只是题外话,无关ACM,无关算法,,,昨天出去和哥们打球,中间打累了,休息的时候聊了起来,今年我大一,有个哥们的弟弟也在他是高三,我们好几个和他弟弟聊起了上大学的话题他弟弟今年高三,是体育特长生,对于志愿也还挺迷茫的,他弟弟想考山大的篮球特长 也想考山东警察学院(他爸爸是一名警察),可能是受他爸爸的影响,对警察这个职业有很深的感情,好好努力吧小伙子,祝愿今年的你一定...

2020-02-29 14:22:21 180

原创 Gym - 101666G Going Dutch

BAPC 2017 The 2017 Benelux Algorithm Programming ContestG Going DutchYou and your friends have just returned from a beautiful vacationin the mountains of the Netherlands. When on vacation,it’s...

2020-02-29 14:00:34 313

原创 Gym - 101666A Amsterdam Distance

A Amsterdam DistanceYour friend from Manhattan is visiting you in Amsterdam. Because she can only stay for ashort while, she wants to see as many tourist attractions in Amsterdam in as little time a...

2020-02-28 13:22:25 348

原创 CodeForces - 1159 A and B

A - A pile of stones读题真是我过不去的坎Vasya has a pile, that consists of some number of stones. n times he either took one stone from the pile or added one stone to the pile. The pile was non-empty before e...

2020-02-27 14:44:06 220

原创 UVa140 Bandwidth

Given a graph (V, E) where V is a set of nodes and E is a set of arcs inV ×V , and an ordering on the elements in V , then the bandwidth of anode v is defined as the maximum distance in the ordering...

2020-02-24 15:51:47 145

原创 UVa 725 Division 和 UVa 11059 Maximum Product

Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0through 9 once each, such that the first number divided by the second is equal to an integer N, ...

2020-02-24 11:33:23 146

原创 UVa1601 The Morning after Halloween

【写在最前】  本题应该是双向BFS的最基本的题目,但是我还是看了题解,某种程度上还是抄了代码,其实抛开本题的双向BFS不说,本题的预处理就值得我们竖起大拇指了,好好理解You are working for an amusement park as an operator of an obakeyashiki, or a haunted house, inwhich guests walk...

2020-02-20 23:26:49 193

原创 UVa156 Ananagrams(map映射)

Most crossword puzzle fans are used to anagrams — groups of words with the same letters in differentorders — for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have thisattribute...

2020-02-18 22:13:14 154

原创 第一百题 UVAa750 8 Queens Chess Problem 目之所及 皆是遗憾

终于写够一百道题啦,怎么也没想过他是这样来临的,在一个阳光明媚的冬日,写完第九十九题之后还是非常激动的,不知道第一百题做什么好,ACM群里不知怎么的就讨论起了八皇后问题(好像还是因为我发了一个非常奇怪的问题求解答)我犹豫了三分钟之后,算了,干脆写个八皇后问题吧,这题很熟悉,但是现在却已经都忘记了题目是什么样子的,又翻了出来。。。。In chess it is possible to place ...

2020-02-18 17:40:52 230

原创 第九十九题 UVa225 Golygons

第九十九题了,还是好激动的…Imagine a country whose cities have all their streets laid out in a regular grid. Now suppose that atourist with an obsession for geometry is planning expeditions to several such citie...

2020-02-18 17:16:53 250

原创 第九十八题 UVa 230Borrowers

I mean your borrowers of books — those mutilators of collections, spoilers of the symmetryof shelves, and creators of odd volumes.– (Charles Lamb, Essays of Elia (1823) ‘The Two Races of Men’)Like ...

2020-02-18 16:20:54 145

原创 第九十七题 UVA1595 对称轴 Symmetry

The figure shown on the left is left-right symmetric as it is possible to fold the sheet of paper along avertical line, drawn as a dashed line, and to cut the figure into two identical halves. The fi...

2020-02-18 15:19:21 209

原创 第九十六题 UVa12100 Printer Queue

The only printer in the computer science students’union is experiencing an extremely heavy workload.Sometimes there are a hundred jobs in the printerqueue and you may have to wait for hours to get ...

2020-02-18 15:09:14 265

原创 第九十五题 UVa11214 Guarding the Chessboard

Given an n ∗ m chessboard with some marked squares, your task isto place as few queens as possible to guard (attack or occupy) allmarked squares. Below is a solution to an 8 ∗ 8 board with everysqu...

2020-02-18 11:43:33 229

原创 第九十四题 UVa12107 Digit Puzzle

If you hide some digits in an integer equation, you create a digit puzzle. The figure below shows twovalid digit puzzles. Hidden digits are represented by squares, and other digits are shown. The num...

2020-02-17 13:51:44 147

原创 Leetcode 第176场周赛 5340. 统计有序矩阵中的负数

首先说一下leetcode这个网站吧,是个非常适合程序员的网站,每周会有竞赛,双周还有 更爽的双周赛,今天早上硬着头皮爬了起来,打了第一场LeetCode的竞赛,哎呀我去,不提了。 第一题很简单,统计矩阵中负数的个数,但是我连输入都不会,我可能学了个假的C++,全是面向对象写的,可能这就是OI与实战的差距吧,以后想去打的互联网公司发展的同学可以在这上面刷题给你一个 m * n 的矩阵 grid,...

2020-02-16 21:35:03 141

原创 第九十三题 UVa 10603 Fill

There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greaterthan 200). The first and the second jug are initially empty, while the third is completely fille...

2020-02-15 15:22:32 360

原创 第九十二题 UVa 1354 Mobile Computing

今天一天一共做了立两道题,但是第二题个人觉得也是很有思维难度,并且从洛谷上给出的提高+/省选的难度标签也证实了猜测。There is a mysterious planet called Yaen, whose space is 2-dimensional. There are many beautifulstones on the planet, and the Yaen people lo...

2020-02-14 22:13:39 148

原创 第九十一题 UVa129 Krypton Factor

You have been employed by the organisers of a Super Krypton Factor Contest in which contestantshave very high mental and physical abilities. In one section of the contest the contestants are tested o...

2020-02-14 15:00:59 155

原创 Python 学习笔记 第一章 概述

第一课时【1】阿兰Ÿ图灵是一名数学家,曾发表了一篇经典论文《论可计算数及其在判定问题中的应用》。阿兰Ÿ图灵提出了“程序控制”思想,阐明了“有一种机器,也能像人脑一样执行指令序列”,并且给出了一种计算模型,即著名的图灵机(Turing Machine)模型。【2】诺伯特Ÿ维纳是著名的控制论专家,曾编写了流传至今的《控制论》一书,他从控制与通信的角度论述计算机的实现问题。维纳曾建议美国政府研制数字...

2020-02-13 18:08:18 498

原创 第九十题 UVa524 Prime Ring Problem

A ring is composed of n (even number) circles as shown in diagram.Put natural numbers 1, 2, . . . , n into each circle separately, and thesum of numbers in two adjacent circles should be a prime.No...

2020-02-13 14:58:03 104

原创 第八十九题 UVa246 10-20-30

A simple solitaire card game called 10-20-30 uses a standard deck of 52 playing cards in which suit isirrelevant. The value of a face card (king, queen, jack) is 10. The value of an ace is one. The v...

2020-02-13 12:09:36 356

原创 第八十八题 UVa804 Petri Net Simulation

A Petri net is a computational model used to illustrate concurrent activity. Each Petri net contains somenumber of places (represented by circles), transitions (represented by black rectangles), and ...

2020-02-11 15:24:39 311

原创 第八十七题 UVa12166 Equilibrium Mobile

A mobile is a type of kinetic sculpture constructed totake advantage of the principle of equilibrium. It consists of a number of rods, from which weighted objectsor further rods hang. The objects ha...

2020-02-11 10:19:25 228

原创 BZOJ 2120: 数颜色

2120: 数颜色Time Limit: 6 Sec Memory Limit: 259 MB Submit: 5028 Solved: 2005 Description 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问。墨墨会像你发布如下指令: 1、 Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜色的画笔。 2、 R P Col 把第P支画

2020-02-10 15:15:17 249

原创 第八十六题 UVa712 S-Trees

今天正月十七了,正月十五没学习,昨天又去打了一天球也没学习,最近题做的真的很慢,行百里者半九十,更何况我还有没到九十,这几天冲一冲进度A Strange Tree (S-tree) over the variable set Xn = {x1, x2, . . . , xn} is a binary tree representing aBoolean function f : {0, 1}...

2020-02-10 14:28:19 151

原创 第八十五题 UVa422 Matrix Chain Multiplication

Suppose you have to evaluate an expression like ABCDE where A,B,C,D and E are matrices.Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary.Howev...

2020-02-07 21:52:16 205

原创 第八十四题UVa514 Rails

There is a famous railway station in PopPush City. Country there is incredibly hilly. The stationwas built in last century. Unfortunately, funds were extremely limited that time. It was possible toe...

2020-02-07 20:40:31 274

原创 第八十三题 UVa400 Unix ls

The computer company you work for is introducing a brand new computer line and is developing anew Unix-like operating system to be introduced along with the new computer. Your assignment is towrite ...

2020-02-06 23:25:37 181

原创 第八十二题 UVA540 团体队列 Team Queue

Sample Input23 101 102 1033 201 202 203ENQUEUE 101ENQUEUE 201ENQUEUE 102ENQUEUE 202ENQUEUE 103ENQUEUE 203DEQUEUEDEQUEUEDEQUEUEDEQUEUEDEQUEUEDEQUEUESTOP25 259001 259002 259003 259004...

2020-02-06 15:49:10 204

原创 第八十一题 UVa12096 The SetStack Computer

Background from Wikipedia: “Set theory is abranch of mathematics created principally by theGerman mathematician Georg Cantor at the end ofthe 19th century. Initially controversial, set theoryhas c...

2020-02-05 21:14:08 189

原创 第八十题 UVa213 Message Decoding

Some message encoding schemes require that an encoded message be sent in two parts. The first part,called the header, contains the characters of the message. The second part contains a pattern thatr...

2020-02-05 14:41:00 135

原创 第七十九题 UVa1368 DNA Consensus String

DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four differentnucleotides, namely Adenine, Thymine, Guanine, and Cytosine as shown in Figure 1. If ...

2020-02-05 13:04:07 166

原创 第七十八题 UVa1583 Digit Generator

【分析】直接看代码就能看懂,只需要解释一下 那个50 为什么是50呢,这其实取决于n的位数 乘以十,题目好像没有明确说明 n有多大,我就写了个五十(也就是n最多是个五位数),然后就AC了//// Created by DELL on 2020/2/4.//#include <iostream>#include <cstring>#include &l...

2020-02-04 17:06:25 118

原创 答近期CLion两问

一 输入EOF关于这个问题专业人士好像称之为 “回显”以前我是用Dev的这种代码,在Dev里运行的时候 输入数据结束之后点一下Ctrl+Z就可以了然而CLion不行, 晚上搜索一下 Ctrl+D,但是Ctrl+D会直接退出程序,并没有输出结果【解决方案】ctrl+shift+a打开搜索框,搜索Registry:不要勾选run.processes.with.pty。但是这种需要...

2020-02-04 13:45:37 364

原创 第七十七题 UVa10082 WERTYU

还是水题但是有两个CLion的小问题搞得我好难受【题目大意】对于每个字符,输出它在键盘上左边的字符//// Created by DELL on 2020/2/4.//代码是很简单 另外写一篇关于CLion的小博客 可以去看 最近发现处理的问题#include <iostream>#include <cstring>#include &lt...

2020-02-04 13:26:37 150

原创 第七十六题 UVa272 TEX Quotes

最近几天学不下习去,很烦躁,昨天晚上和学长聊了很多,他给了我一个网址,上面是紫书的例题,并且按照紫书的顺序,听学长的 我还是从第三章开始一点点刷题吧,不管他简单与否TEX is a typesetting language developed by Donald Knuth. It takes source text together with a fewtypesetting instruc...

2020-02-04 12:53:10 163

原创 第七十五题 UVa101 The Blocks Problem

做完这道就七十五个了,四分之三了,今天已经正月初十了,本来还有四五天我就要离开我亲爱的故乡了,但是由于疫情严重,不知何时才能回去我那个倾注了感情的数院,还剩二十五个题,也一点不着急了。。。。题意翻译初始时从左到右有n个木块,编号为0~n-1,要求实现下列四种操作:move a onto b: 把a和b上方的木块全部放回初始的位置,然后把a放到b上面move a over b: 把a上方的...

2020-02-03 20:27:48 196

原创 第七十四题 UVA10474 大理石在哪儿 Where is the Marble?

Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the number...

2020-02-01 14:54:24 257

原创 CLion配置无项目直编译cpp源文件

CLion众所周知,他们家的IDE都是非常好用的首先说吧,我是个学生党,平常打个ACM写写代码,CLion非常好用,我也很喜欢,但是每次配置项目有点麻烦,上网搞了一下 果然办法总比困难多1.配置External Tools说明一下,g++ 那一栏要选择自己的g++编译器路径然后下面那两栏 都是从后面的选项里选择如图的东西。。。再次说明 。Program那一栏选择如图FileDir选...

2020-02-01 14:08:44 623 2

DVD在线租赁.docx

DVD在线租赁.docx

2020-12-19

CLion2019汉化脚本.rar

CLion好用是好用,但是对于我整个英语白痴,汉化就显得尤为重要了,在此提供汉化的解决方案,还不够五十个字么,这下应该够了吧

2020-02-04

树的DFS序及其应用

适用于正在搞OI的选手学习和提高,一种很不错的思想,近年来NOIP考察树上的东西渐多,值得好好学习

2017-10-20

组合数学(计算机)

美国威斯康星大学出版的《组合数学》,近年来成为计算机专业的必修课,值得深入学习。

2017-10-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除