Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

擦,离散化+暴力,之前居然runtime error,把数组改大了就过了⊙﹏⊙b汗

Posted by zck921031 at 2012-05-05 09:19:05 on Problem 2528
#include <cstdio>
#include <map>
#include <cstdlib>
#include <cstring>
using namespace std;
struct E
{
	int x,y;
}edge[20050];
map<int,int> l;//离散化
map<int,int>::iterator it;
int f[40050];//覆盖
int jmp[40050];//jump to the end of the line;

之前用的是【10050】,难道数据中n>10000?!!

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator