avatar
请教一个算法题# JobHunting - 待字闺中
y*r
1
Dear Customer
We regret to let you know that we cancelled your open order number on
Amazon.com because it violates our Condition of Use.
Specifically, your order violates our quantity restrictions.
At this point, we are only canceling your order, but if you continue to
violate Amazon.com policies, we may take further action, including closing
your Amazon.com account.
avatar
c*t
2
两排各有N个node: A[1-N], B[1-N], 相邻两个node都相连,给weight a[0~N-1], b[0~
N-1]. 下图中 a=[1,8,8,1], b=[5,2,2,5] . 竖着连接K(K>=1)条edge,只能对应的
node相连(ie. A1连B1, A4连B4), 这样任意两个node都有一条最短path, 取所有最
短path的最大值为diameter。 给予 N 和 K, 求如何连接可以得到最小diameter。
A1--1--A2--8--A3--8--A4--1--A5
B1--5--B2--2--B3--2--B4--5--B5
test case 1 如上图 N = 5, K = 2, a = [1,8,8,1], b = [5,2,2,5], 最优解连A2-B2
和A4-B4
请教如何解?
avatar
t*r
3
难怪能一直活着啊

【在 y***r 的大作中提到】
: Dear Customer
: We regret to let you know that we cancelled your open order number on
: Amazon.com because it violates our Condition of Use.
: Specifically, your order violates our quantity restrictions.
: At this point, we are only canceling your order, but if you continue to
: violate Amazon.com policies, we may take further action, including closing
: your Amazon.com account.

avatar
b*a
4
最简单的情况 K=2
那就是要在所以子线段中找一段A和B的权重相差最多的 假设相差x
这样所以的最短径都缩短了x Diameter也减小了x
必须是选权重相差最多的一段 因为如果选了次多的 把次多替换成最多的一段总是可以
把diameter再减小
以此类推如果K就偶数 就依次选最多的一段 次多的一段 第三多的一段
选权重相差最多的子段 先把AB权重相减 在等到的数组里找和最大的子数组 是不是很
熟悉
但是K为奇数的时候好像更麻烦一点没想清楚 谁来解答一下
avatar
c*n
5
估计班上大部分账号已经挂了,能买出来算幸运的。
avatar
b*a
6
好像还忽略了同侧的点的最短路径问题 orz
avatar
l*r
7
shipping soon了之后Amazon是不是就不管了?
avatar
m*n
8
呵呵,刚注册了10个账号,都是shipping soon.
avatar
c*n
9
嗯,但会秋后算账

【在 l*******r 的大作中提到】
: shipping soon了之后Amazon是不是就不管了?
avatar
g*n
10
怎么算。。

【在 c*****n 的大作中提到】
: 嗯,但会秋后算账
avatar
c*n
11
过几天热门的东西会in不了,所以早死往往死里in

【在 c*****n 的大作中提到】
: 嗯,但会秋后算账
avatar
s*0
12
注册了一个帐号,也在ship了
avatar
l*3
13

牛人啊

【在 m***n 的大作中提到】
: 呵呵,刚注册了10个账号,都是shipping soon.
avatar
h*e
14
BL以后shipping soon的也能寄出来。我发现我下单instant cancel之后,帐号里的
shipping soon的kinect还是全部寄出来了,但是没办法下新的了。

【在 l*******r 的大作中提到】
: shipping soon了之后Amazon是不是就不管了?
avatar
n*l
15
是不是这个地址都不行了?

【在 y***r 的大作中提到】
: Dear Customer
: We regret to let you know that we cancelled your open order number on
: Amazon.com because it violates our Condition of Use.
: Specifically, your order violates our quantity restrictions.
: At this point, we are only canceling your order, but if you continue to
: violate Amazon.com policies, we may take further action, including closing
: your Amazon.com account.

avatar
S*2
16
我的账户应该能行,还没从AMZ买过Kinect呢
avatar
k*r
17
wk,你们是真的不能下还是假的啊,又下了30个,你们不是在忽悠别人下自己不下吧.....
............................................................................
..................

【在 y***r 的大作中提到】
: Dear Customer
: We regret to let you know that we cancelled your open order number on
: Amazon.com because it violates our Condition of Use.
: Specifically, your order violates our quantity restrictions.
: At this point, we are only canceling your order, but if you continue to
: violate Amazon.com policies, we may take further action, including closing
: your Amazon.com account.

avatar
y*o
18
完蛋了。你们不把amazon弄死。所有人都得死。神医护士一个都跑不了。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。