POJ2585 Window Pains 题解 AOV

2021-03-06 10:28

阅读:386

标签:add   lan   space   name   head   ble   pac   scanf   org   

题目链接:http://poj.org/problem?id=2585

示例代码:

#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;
const int maxn = 11, maxm = 1100;
struct Edge {
    int v, nxt;
    Edge() {};
    Edge(int _v, int _nxt) { v = _v; nxt = _nxt; }
} edge[maxm];
int ecnt, head[maxn];
void init() {
    ecnt = 0;
    memset(head, -1, sizeof(head));
}
void addedge(int u, int v) {
    edge[ecnt] = Edge(v, head[u]);
    head[u] = ecnt ++;
}
char s[11];
int a[5][5], in[maxn];
queue que;
bool handle() {
    while (!que.empty()) que.pop();
    for (int i = 1; i 

POJ2585 Window Pains 题解 AOV

标签:add   lan   space   name   head   ble   pac   scanf   org   

原文地址:https://www.cnblogs.com/quanjun/p/12863100.html


评论


亲,登录后才可以留言!