原创 POJ1573--Robot Motion(模擬)

Description A robot has been programmed to follow the instructions in its path. Instructions for the next directio

原创 HDU2489--Minimal Ratio Tree(最小生成樹)

Do more with less Description For a tree, which nodes and edges are all weighted, the ratio of it is calculated ac

原创 POJ3691--Sky Code(容斥)

Do more with less Discussion Stancu likes space travels but he is a poor software developer and will never be able

原创 Do more with less

Do more with less

原创 順序表基本運算算法

//順序表基本運算算法 #include <stdio.h> #include <malloc.h> #define MaxSize 50 typedef int ElemType; typedef struct { El

原创 銀行家算法

⑴ 系統此時是否處於安全狀態? ①, 初始化,令Work = Available, Finish列全爲false  進程 Max   Allocation Need Work Finish R1  R2  R3  R4  R1 

原创 POJ1273--Drainage Ditches(最大流)

Discussion Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means t

原创 King of the Waves

題意: 給你n,代表有0 n-1個人,給你n行,每行n個字符, 字符是X,i=j就是這個人在這個位置 1 代表,i人能贏j人當king 0代表輸; 遊戲規則是b 是king a能贏b a當king 問裁判按什麼安排順序

原创 ALDS1_4_C Dictionary(哈希)

Discussion Your task is to write a program of a simple dictionary which implements the following instructions: inse

原创 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 Farme

原创 一些有用的博客

Do more with less http://blog.csdn.net/dorlife?viewmode=list 數論系列 http://www.cnblogs.com/linyujun/category/784324.html

原创 ALDS1_5_B 歸併排序

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

原创 POJ3068--"Shortest" pair of paths(最小費用流)

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

原创 2017 ACM-ICPC 亞洲區(瀋陽區)網絡賽

2017 ACM-ICPC 亞洲區(瀋陽區)網絡賽

原创 2017 ACM-ICPC 亞洲區(烏魯木齊賽區)網絡賽

2017 ACM-ICPC 亞洲區(烏魯木齊賽區)網絡賽 A題 : Banana C題 : Coconut