2 CSU_lmw



TA的排名 10w+

UVA 1025 A Spy in the Metro

DescriptionSecret agent Maria was sent to Algorithms City to carry out an especially dangerous mission. After several thrilling events we find her in the first station of Algorithms City Metro, examin...

2019-06-09 18:31:15



2019-01-16 22:58:02

Reinforcement Learning 的那点事——强化学习(一)

引言  最近实验室的项目需要用到强化学习的有关内容,就开始学习起强化学习了,这里准备将学习的一些内容记录下来,作为笔记,方便日后忘记了好再方便熟悉,也可供大家参考。该篇为强化学习开篇文章,主要概括一些有关强化学习的内容,以帮助了解什么是强化学习,以及学习方向,部分涉及到的内容将会在后面的篇章中展开详细的叙述。推荐课程(Utubu上的,需翻墙),B站上也有。基础概念和实际运用   定...

2018-10-27 13:00:59

HDU - 1711 Number Sequence KMP 模板题

Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K ...

2018-10-25 11:06:49

CodeForces - 1038A Equality 水题

You are given a string ss of length nn, which consists only of the first kk letters of the Latin alphabet. All letters in string ss are uppercase.A subsequence of string ss is a string that can be d...

2018-10-08 17:15:27

二叉树遍历(前序、中序、后序) UVA 548 Tree

今天复习前面的内容的时候看到一道题UVA 548 Tree,说的是输入一个二叉树中序和后序的集合,沿着二叉树的一条边走,问叶子为多少的这条路最短。看到这道题,中序?后序?什么玩意???不知道,百度!查了之后会了,就回来A了这题。先给一个二叉树二叉树前序遍历         前序遍历顺序可以简记为根左右   规则:   (1)访问根节点   (2)前序遍历左子树 ...

2018-09-13 13:21:56

HDU - 1829 A Bug's LIfe 带权并查集

Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gend...

2018-08-12 23:31:32

UVA - 1197 - The Suspects 并查集

Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strategy is to s...

2018-08-12 20:19:47

UVA 101 The Blocks Problem STL+模拟

题目:给你n个方块,有四种操作:            1.move a onto b,把a和b上面的方块都放回原来位置,然后把a放到b上面;            2.move a over b,把a上面的放回原处,然后把a放在b所在的方块堆的上面;            3.pile a onto b,把b上面的放回原来位置,然后把a和a上面的方块整体放到b上面;       ...

2018-07-23 17:25:35

CSU 2089 Bit String Reordering(模拟)

DescriptionYou have to reorder a given bit string as specified. The only operation allowed is swapping adjacent bit pairs. Please write a program that calculates the minimum number of swaps required...

2018-07-23 01:11:26

UVA 10474 Where is the Marble?

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

2018-07-23 00:47:17

Gym 101550G (CSU 2018) Game Rank 模拟

DescriptionThe gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players have a rank determining their playing strength which...

2018-07-22 23:57:31


刷过ACM题的同学应该都有这种体会,感觉自己已经考虑的很充分了,但就是一直wa,这时候,如果有一份能够保证100%正确的代码,再加上题目数据比较好利用随机数创造时,便可以使用对拍来找到错在哪些数据上了。我们需要三个exe文件加一个bat文件再加两个txt文件。首先我们先创建一个文件夹,在文件夹里新建一个txt文本文档,输入以下代码后把后缀改为.bat:again data.exe...

2018-07-19 00:02:21


--选择题 10x2--填空题 10x1--问答题 6x5--关系代数 pl / sql 25--设计题 15一、数据库特点: 永久储存 有组织 可共享 功能:  1.数据定义功能:   (1)数据定义语言DDL  2.数据操纵功能:   (2)数据操纵语言DML   //(3)数据控制语言DCL  3.数据组织、储存和管理:   数据组织和存储的基本目标是提高存储空间利用率和方便存取,提供多种存...

2018-06-17 19:08:59

CSUOJ 1010 Water Drinking

DescriptionThe Happy Desert is full of sands. There is only a kind of animal called camel living on the Happy Desert. Cause they live here, they need water here. Fortunately, they find a pond which ...

2018-06-15 17:54:53

UVa210 Concurrency Simulator (ACM/ICPC World Finals 1991) 双端队列

Programs executed concurrently on a uniprocessor system appear to be executed at the same time, but in reality the single CPU alternates between the programs, executing some number of instructions fro...

2018-06-10 12:18:57

UVa 12657 Boxes in a Line 双向链表

You have n boxes in a line on the table numbered 1...n from left to right. Your task is to simulate 4 kinds of commands: • 1 X Y : move box X to the left to Y (ignore this if X is already the left of ...

2018-06-10 11:44:23

HDU - 1698 Just a Hook 线段树

Just a HookTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 39606    Accepted Submission(s): 19194Problem Description In the game of DotA, Pudge’...

2018-05-22 19:32:43

HDU - 3577 Fast Arrangement 线段树

Fast ArrangementTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3563    Accepted Submission(s): 1024Problem Description Chinese always have the ...

2018-05-22 19:18:27

HDU - 1166 敌兵布阵 线段树

敌兵布阵Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 113186    Accepted Submission(s): 47420Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Der...

2018-05-22 19:01:17


勋章 我的勋章
  • 持之以恒