- 博客(4)
- 收藏
- 关注
转载 C Notes1
C behaves in a confusing way when one or both of the operands to % are negative. In fact, different implementations of C can behave differently in such cases. If you rely on one particular beha...
2012-11-24 23:42:00 77
转载 UVA 11300
Maths problem. xi means the ith person gives xi coins to the (i - 1)th person.If the first person gvies 2 coins to the second and the second gives 3 coins to the first, then x2 is = 3 - 2 =1...
2012-11-16 15:40:00 75
转载 UVA 11729
Job order problem. greedy : Sort the people by their work time decreasingly. And that's the order. The total time is max {start_time[i] + work_time[i]} Demonstration: Assumes that x1x2x3......
2012-11-16 15:26:00 77
转载 UVA 11292
There is no doubt that the strong knight should take care of the strong dragon. So we can sort the knights by their ability increasingly. As for dragon, ditto. From the first knight to the last...
2012-11-16 14:56:00 58
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人