Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
擦,离散化+暴力,之前居然runtime error,把数组改大了就过了⊙﹏⊙b汗#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator