摘要:
Sightseeing trip Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7483 Accepted: 2827 Special Judge Description There is a travel agency in 阅读全文
摘要:
题目描述 C 国有 n 个大城市和 m 条道路,每条道路连接这 n 个城市中的某两个城市。任意两个城市之间最多只有一条道路直接相连。这 m 条道路中有一部分为单向通行的道路,一部分为双向通行的道路,双向通行的道路在统计条数时也计为 1 条。 C 国幅员辽阔,各地的资源分布情况各不相同,这就导致了同一 阅读全文
摘要:
#include<cstdio>#include<algorithm>using namespace std;const int maxn=5000;int a[maxn],b[maxn];int dp[maxn];int main(){ int n; scanf("%d",&n); for (in 阅读全文
摘要:
#include<cstdio>#include<cmath>#include<cstring>#include<iostream>#include<algorithm>using namespace std;const int N=250005;//const int M=200005;int n 阅读全文
摘要:
#include<cstdio>#include<cstring>#include<algorithm>using namespace std;const int maxn=60;const int nil=(1<<29);int a[maxn];int dp[maxn][maxn];int mai 阅读全文