| ||||||||||
| 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 | |||||||||
用了string,用G++提交,怎么优化都TLE的可以来看下……用string大数组的请换C++提交,这G++里面定义个50W的string就直接超时了……
以下这段短得可以的代码用C++提交WA,用G++提交TLE……
表示优化了半天还是TLE,实在想不通的时候我把这玩意交上来了,然后……
#include <string>
using namespace std;
const int MAXN=500007;
string s[MAXN];
int main()
{
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator