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

Re:Why is my code always wrong? Actually I use dynamic allocation for the array, somebody please help me!!!

Posted by sths at 2012-04-25 21:32:08 on Problem 1002
In Reply To:Re:Why is my code always wrong? Actually I use dynamic allocation for the array, somebody please help me!!! Posted by:sths at 2012-04-25 21:26:54
well, when I change N to 10000, it's alright.
So I think it's due to the memory you apply for is not enough. 
My suggestion is Don't Read all the input once.
You can read a line, change it to standard form, and continue.
If there is still some problem, post it here.

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