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 |
G++: I have not change my program logic and solved TLE and WAG++: I have not change my program logic and solved TLE and WA. WA: 1. When using integer representing phone number, not present leading zero. Test case: 4 0000000 0000000 0011001 0011001 2. "No duplicates." Test case: 1 0000000 TLE: 1. Do not use map<string, int> or set<> to store phone book. 2. I/O is significant. Try using printf/scanf not cout/cin. 3. String processing is significant. Do not use istringstream/ostringstream even string, use char* instead. 4. Check your alg first in (finding and sorting), then in (inserting and deleting). Their complexity and Times invoked is crucial. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator