码迷,mamicode.com
首页 >  
搜索关键字:poj 1321    ( 20310个结果
Longest Ordered Subsequence POJ - 2533 dp 最长上升/不下降 子序列
#include<iostream> using namespace std ; const int N=1010; int f[N]; int a[N]; int n; int main() { cin>>n; for(int i=1; i<=n; i++) cin>>a[i]; for(int ...
分类:其他好文   时间:2020-01-28 19:33:31    阅读次数:71
Common Subsequence POJ - 1458 最长公共子序列 线性DP
#include <iostream> #include <algorithm> #include <string> #include <cstring> #include <cstdio> #define MAX 1005 using namespace std; int ans[MAX][MAX ...
分类:其他好文   时间:2020-01-28 19:21:43    阅读次数:85
Help Jimmy POJ - 1661 dp
#include<iostream> #include<stdio.h> #include<algorithm> #include<cstring> using namespace std; const int N=1010; const int M=20010; const int INF=0x3 ...
分类:其他好文   时间:2020-01-28 18:58:25    阅读次数:76
[POJ - 2387] L - Til the Cows Come Home(图论)
L - Til the Cows Come Home POJ - 2387 Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John ...
分类:其他好文   时间:2020-01-28 17:16:11    阅读次数:73
POJ1835 宇航员 模拟
一道模拟题:http://poj.org/problem?id=1835 back、forward、up、down都很好搞,而left和right困扰了我很久,最后我直接打表,将所有情况的left和right都搞出来 代码如下: #include <iostream> #include <cstdi ...
分类:其他好文   时间:2020-01-28 09:30:00    阅读次数:78
Java-POJ1008-Maya Calendar
题意:两种纪年方法的转换 水题,根据题目翻译成代码就可以了 居然WA了一次,避坑,output要先输出数据组数,痛心疾首啊!本来可以一次AC的。 1 package poj.ProblemSet; 2 3 import java.util.Scanner; 4 5 public class poj1 ...
分类:编程语言   时间:2020-01-27 23:58:53    阅读次数:122
Antenna Placement poj 3020
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
POJ 1611
疫情严重,在家玩题,结果第一个就是关于SARS的(大雾...) "POJ 1611" 简单的并查集 ...
分类:其他好文   时间:2020-01-27 19:11:52    阅读次数:44
Tram POJ - 1847 spfa
#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
poj-3126 Prime Path
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
20310条   上一页 1 ... 41 42 43 44 45 ... 2031 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!