摘要: http://ac.jobdu.com/problem.php?id=1376N^2的算法超时优化算法想了好久没想出来,就当是学习一下STL的set了吧 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <math.h> 4 #include <set> 5 #include <iostream> 6 #define INF 0x7fffffff 7 using namespace std; 8 set<long long> S; 9 long long a,aa, 阅读全文
posted @ 2012-02-01 15:21 linyvxiang 阅读(358) 评论(1) 推荐(0) 编辑