
poj
chaomaer
这个作者很懒,什么都没留下…
展开
-
POJ 1472
#include <iostream>#include <cstdio>#include <string>#include <sstream>#include <cstring>using names原创 2018-05-02 15:49:11 · 256 阅读 · 0 评论 -
poj 1062
#include <iostream>#include <string.h>using namespace std;int min(int x,int y){ return x>y?y:x;}int m, n;const int size = 101;const int INF = 0x3f3f3f3f;int road[size][s原创 2018-03-10 13:25:21 · 108 阅读 · 0 评论 -
poj 2240
#include <iostream>#include <map>#include <string.h>#include <string>using namespace std;const int size = 31;int n;map<string, int> str2ix;原创 2018-03-10 16:53:45 · 143 阅读 · 0 评论 -
poj 2253
#include <iostream>#include <math.h>#include <string.h>#include <stdio.h>#include &l原创 2018-03-10 15:10:35 · 140 阅读 · 0 评论 -
POJ 3026
#include <iostream>#include <algorithm>#include <vector>#include <map>#include <string>#include <queue>#include <cstring>#include <cstdio>原创 2018-05-27 11:58:07 · 366 阅读 · 0 评论 -
POJ 1094
Thinking in topological sorthow to judge if has a loopwhen there are still some unvisited node, but the number of node whose in-degree==0 equals zero, we can say: there is a loop in the graph.ho...原创 2018-05-27 15:07:25 · 193 阅读 · 0 评论 -
POJ 4044
#include<stdio.h>#include<iostream>#include<algorithm>#include<functional>#include<vector>#include<string.h>using namespace std;vector<int> vect1;vect原创 2018-07-06 11:05:43 · 318 阅读 · 0 评论 -
POJ 2479
很好的思路,同时从前面和后面计算最大的连续序列和,然后遍历中间点,得出最大值。#include<stdio.h>#include<iostream>#include<algorithm>#include<functional>#include<vector>#include<string.h>using nam...原创 2018-07-06 15:03:04 · 245 阅读 · 0 评论 -
POJ 1472
自己对于这道题目的理解 主要参考的代码链接 传送门BEGIN LOOP n OP 4 LOOP 3 LOOP n OP 1 END OP 2 END OP 1 END OP 17 OP 17 LOOP n OP 4 LOOP 3 LOOP n ...原创 2018-09-06 20:50:51 · 239 阅读 · 0 评论