UVa11559 Event Planning

問題文
http://uva.onlinejudge.org/external/115/11559.html

概要
ポイントは以下

  • You are free to choose from a number of weekends this autumn, and have to find a suitable hotel to stay at, preferably as cheap as possible.
  • > コストを最小にするのに適切な週と適切なホテルを1つ選択する
  • All participants must stay at the same hotel, to avoid last years catastrophe, where some members got lost in the city, never being seen again.
  • > 全員同じホテルに泊まること

解法
二重ループしてN人分合計での最小の支払い料金を求めて、それが予算に見合うものか調べるだけ。