Antenna Placement Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12104 Accepted: 5954 Description The Global Aerial Research Centre has be ...
分类:
其他好文 时间:
2020-01-27 19:21:22
阅读次数:
58
疫情严重,在家玩题,结果第一个就是关于SARS的(大雾...) "POJ 1611" 简单的并查集 ...
分类:
其他好文 时间:
2020-01-27 19:11:52
阅读次数:
44
#include<iostream> #include<algorithm> #include<queue> #include<cstdio> #include<cstring> using namespace std; const int N=1100,INF=0x3f3f3f3f; int h[ ...
分类:
其他好文 时间:
2020-01-27 17:35:24
阅读次数:
81
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room ...
分类:
其他好文 时间:
2020-01-27 17:32:06
阅读次数:
56
https://blog.csdn.net/shanshanpt/article/details/8724769 有中文题面,就不解释了。 妥妥的中国剩余定理没跑了。 Java跑得慢,一点办法也没有,必须写正解,暴力居然TLE 1 package poj.ProblemSet; 2 3 import ...
分类:
编程语言 时间:
2020-01-27 17:16:51
阅读次数:
70
一道简单的贪心模板题 http://poj.org/problem?id=2393 将每天的价格都放到最低就行了 核心思路:第i天最低的价格 = min(第i-1天最低的价格+s,第i天原本的价格) 有了思路,代码随便打 #include <iostream> #include <algorithm ...
分类:
其他好文 时间:
2020-01-27 17:05:16
阅读次数:
70
//从起点1到剩余P-1个点的最短距离之和+从剩余P-1个点到起点1的最短距离之和 #include<iostream> #include<cstring> #include<cstdio> #include<queue> using namespace std; const int LEN=100 ...
分类:
其他好文 时间:
2020-01-27 15:55:06
阅读次数:
58
#include<cstdio> #include<cmath> #include<cstring> #include<cstring> #include<iostream> #include<queue> using namespace std; const int N=205; const do ...
分类:
其他好文 时间:
2020-01-27 15:42:59
阅读次数:
49
#include<iostream> #include<cstring> using namespace std; const int N=110,INF=0x3f3f3f3f; int f[N][N]; int main() { int n,m; cin>>n>>m; memset(f,0x3f, ...
分类:
其他好文 时间:
2020-01-27 14:05:03
阅读次数:
72
#include<cstdio> #include<cstdlib> #include<cstring> #include<iostream> using namespace std; const int N=110; const int INF = 0x3f3f3f3f; char s[20]; ...
分类:
其他好文 时间:
2020-01-27 14:01:08
阅读次数:
79