题目链接:http://codeforces.com/problemset/problem/567/B 题意:题目大意: 一个计数器, +号代表一个人进入图书馆, -号代表一个人出去图书馆. 给一个log, 问这个log中能知道的这个图书馆最小的可能容量是多少, log是片段, 在program运行 Read More
posted @ 2016-07-15 22:35 西瓜不懂柠檬的酸 Views(221) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2112 spfa或者迪杰斯特拉都可以 注意公交车是有来回的 #include <iostream> #include <cstdlib> #include <cstdio> #include <algor Read More
posted @ 2016-07-15 20:37 西瓜不懂柠檬的酸 Views(141) Comments(0) Diggs(0)
levels of contents