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 1041. Nikifor

WA4
Posted by Lukyanov Alexandr [Yaroslavl SU] 6 Aug 2007 19:50
Who can take test me?
i use sort(price, position)+gaus.
Re: WA4
Posted by Erop [USU] 17 Jul 2010 23:04
try test:
11 10
1 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1
1
1
1
1
1
1
1
1
1
1
1

Out:
10
1
2
3
4
5
6
7
8
9
10

Edited by author 17.07.2010 23:05
Re: WA4
Posted by phizaz 5 Apr 2011 15:49
Is it has this tase case?
It's pretty hard to solve T_T
Re: WA4
Posted by ValenKof 25 Jul 2011 21:57
test:

3 2
0 1
2 0
1 0
10
10
10

answer:

20
1
2

lexicographic means input order, not coordinates.