我家有个zz~

YTU-ACMer

一些有用的博客

数论系列 http://www.cnblogs.com/linyujun/category/784324.html 哈希查找题http://blog.csdn.net/qwb492859377/article/category/5995305 最小生成树prim http://blog.csd...

2017-08-08 15:16:36

阅读数:319

评论数:0

King of the Waves

题意: 给你n,代表有0 n-1个人,给你n行,每行n个字符, 字符是X,i=j就是这个人在这个位置 1 代表,i人能赢j人当king 0代表输; 游戏规则是b 是king a能赢b a当king 问裁判按什么安排顺序0能当king 一开始思路是A能打赢B就连A到B,然后看...

2018-05-02 21:36:03

阅读数:67

评论数:0

银行家算法

⑴ 系统此时是否处于安全状态? ①, 初始化,令Work = Available, Finish列全为false  进程 Max   Allocation Need Work Finish R1  R2  R3  R4  R1  R2  R3  R4 R...

2018-04-28 11:04:55

阅读数:56

评论数:0

Dijkstra算法--邻接表存储+堆优化

//Dijkstra #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <...

2017-12-10 15:05:09

阅读数:252

评论数:0

用Sublime Text运行C++代码

{ "encoding": "utf-8", "working_dir": "$file_path", "shell_cmd": "g++ -Wall -std=c++11 \&qu...

2017-11-06 12:44:31

阅读数:233

评论数:0

POJ3041--二分图最大匹配模板

#include <cstdio> #include <iostream> #include <cstring> const int MAXN = 510; int uN,vN; int g[MAXN][MAXN]; int linker[MAXN]; bool...

2017-10-28 13:11:38

阅读数:172

评论数:0

POJ3068--"Shortest" pair of paths(最小费用流)

Discussion A chemical company has an unusual shortest path problem. There are N depots (vertices) where chemicals can be stored. There are M in...

2017-10-26 21:26:14

阅读数:185

评论数:0

POJ1273--Drainage Ditches(最大流)

Discussion Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means that the clover is covered by ...

2017-10-24 20:24:59

阅读数:197

评论数:0

ALDS1_5_B 归并排序

#include <iostream> #include <cstdio> #include <algorithm> using namespace std; const int INF = 1 << 30; const int N = 500010...

2017-10-18 19:08:16

阅读数:238

评论数:0

ALDS1_4_C Dictionary(哈希)

Discussion Your task is to write a program of a simple dictionary which implements the following instructions: insert str: insert a string str i...

2017-10-17 10:46:51

阅读数:297

评论数:0

POJ2387--Til the Cows Come Home(dijkstra)

Description Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morn...

2017-10-09 16:49:08

阅读数:180

评论数:0

SDUT3333&3332 下一较大值

Problem Description 对于包含n(1<=n<=100000)个整数的序列,对于序列中的每一元素,在序列中查找其位置之后第一个大于它的值,如果找到,输出所找到的值,否则,输出-1。 Input 输入有多组,第一行输入t(1<=t<=10),表示输入的...

2017-09-25 18:12:13

阅读数:242

评论数:0

2017 ACM-ICPC 亚洲区(西安赛区)网络赛

C题

2017-09-16 13:58:21

阅读数:1455

评论数:0

SDUT2132--一般算术表达式转换成后缀式

Problem Description 对于一个基于二元运算符的算术表达式,转换为对应的后缀式,并输出之。 input 输入一个算术表达式,以‘#’字符作为结束标志。 Output 输出该表达式转换所得到的后缀式。 Example Input a*b+(c-d/e)*f# Exam...

2017-09-15 13:16:11

阅读数:353

评论数:0

2017 ACM/ICPC Asia Regional Shenyang Online 1004 array array array

Problem Description One day, Kaitou Kiddo had stolen a priceless diamond ring. But detective Conan blocked Kiddo’s path to escape from the museum. ...

2017-09-10 19:58:06

阅读数:728

评论数:0

2017 ACM-ICPC 亚洲区(沈阳区)网络赛

2017 ACM-ICPC 亚洲区(沈阳区)网络赛

2017-09-10 15:38:37

阅读数:2668

评论数:1

2017 ACM/ICPC Asia Regional Shenyang Online

2017 ACM/ICPC Asia Regional Shenyang Online1004

2017-09-10 12:04:03

阅读数:1523

评论数:0

2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛 C. Coconut(签到)

C: Coconut time limit 200ms memory limit 131072KB Discussion Coconut is Captain Gangplank’s favourite fruit. That is why he n...

2017-09-10 10:35:08

阅读数:726

评论数:0

2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛 A. Banana(签到)

A: Banana time limit 200ms memory limit 131072KB Discussion Bananas are the favoured food of monkeys. In the forest, there is a...

2017-09-10 10:08:59

阅读数:362

评论数:0

2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛

2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛A题 : BananaC题 : Coconut

2017-09-09 12:17:26

阅读数:2230

评论数:0

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