| ||||||||||
| 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 | |||||||||
谁能提供一下bt的input?In Reply To:是不是只要最后交换方法中所有人的地位差<=M就成啊? Posted by:arcane at 2005-08-02 10:37:06 测试了四组数据都正确啊,为什么还是wa呢??
一组是例子里的数据
一组是:1 2
1000 1 1
2 10
10 9 0
一组是:1 2
1000 9 1
2 10
10 1 0
最后一组是:2 8
1000 2 3
2 3000
3 5000
4 4000
3000 1 2
5 1000
6 500
600 3 0
2000 3 2
7 100
8 650
2500 2 0
2600 2 0
1000 5 1
3 5
60 4 0
结果是4710,也是正确的
> ??
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator