ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1290. Sabotage

WA 14
Posted by Drema [KhAI] Tihov Ilya 11 Jun 2009 01:47
Re: WA 14
Posted by IgorKoval(from Pskov) 4 Oct 2011 19:08
To be careful :
use vector<short> or

arrays
    const long n_max = 25001;// if n_max = 25000 => WA14!!!!!!!!!!!!
    long n1, n2, n3, p1[n_max], p2[n_max], p3[n_max];