比如当 n=15,k=3,a=2,b=10 时,从 a 到 b 中的以下几种可能都认为可行的:
-2 → 10
-2 → 6 → 10
-2 → 7 → 14 → 10
-......
墨墨现在在a层,老师在b层。墨墨能否找到老师?
5
10 3 2 7
10 7 1 4
10 4 2 9
10 11 1 10
9 3 7 2
YES
NO
YES
NO
YES
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 49889
关于网站改版