简单的开始 完美の开始 这里数组什么的用来干什么后面标注的清楚了 #include<iostream> #include<cstdio> #include<cmath> using namespace std; int map[10001][10001];//记录两个点之间的路径个数 int du[10001];//辅助记录奇点 int lu[10001];//记录路径 int n,x,y,js=0;//输入的数据和计数器 int maxn=0; 正题开始QWQ 先说思…
Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 28359 Accepted: 9213 Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000)…