2010-09-15から1日間の記事一覧
通ったんだ
404 Not Found nは高々10なので順列で生成してもいいんだろうけど360万ループ*重心とかの判定計算とかは効率化しないとTLEしそう。 ということでバックトラック解法 #include <iostream> #include <vector> using namespace std; vector<int> choice; string name[10]; int weight[1</int></vector></iostream>…