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

用了string,用G++提交,怎么优化都TLE的可以来看下……

Posted by 794570 at 2015-02-11 20:57:22 on Problem 2886
用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:
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