Minimum Scalar Product (GCJ2008 Round1A A)

Problem

You are given two vectors v1=(x1,x2,...,xn) and v2=(y1,y2,...,yn). The scalar product of these vectors is a single number, calculated as x1y1+x2y2+...+xnyn.

Bribe the Prisoners (GCJ2009 Round1C C)

Problem

一个监狱里有 P 个并排着的牢房。从左至右依次编号为 1,2,⋯,P。最初所有的牢 房里都住着一个囚犯。相邻的两个牢房之间有一个窗户,可以通过它与相邻牢房里的囚犯对话。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×