#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) struct P { int x, y; double w; P(){}; P(int _x, int _y): x(_x), y(_y){}; }; int kyotoDist(P p, P q) { return abs(p.x - q.x) + abs(p.y - q.y); } int N,T; double dp[14][1<<14]; vector

ps; int X[15], Y[15], W[15]; double speed(double w) { return (w + 100.0) / 120.0; } signed main() { P s; cin >> s.x >> s.y; cin >> N; ps.resize(N); REP(i,N) cin >> ps[i].x >> ps[i].y >> ps[i].w; REP(i,N) REP(j,1<