摘要:
题意:给出一个无向图。问删去每一条边后,是否出现一对(u,v) st 删去这条边后,u和v不连通,且u 2 #include 3 #include 4 using namespace std; 5 const int N = 100005; 6 7 int head[N], max... 阅读全文
摘要:
A. Currency System in GeraldionA magic island Geraldion, where Gerald lives, has its own currency system. It uses banknotes of several values. But the... 阅读全文
摘要:
Longest Prefix给定一堆小字符串,问最长可以组成给定的大字符串的多少位前缀。类似于DP的思想,标记出结束位置。看最远结束在哪里。#include using namespace std;const int N = 1205;const int M = 200004;string ch... 阅读全文