Đề bài: http://vn.spoj.com/problems/VMKEY/
Thuật toán:
- (đang cập nhập)
Code:
#include
#define FORE(i, a, b) for(int i = a; i <= b; i++)
#define FORD(i, a, b) for(int i = a; i >= b; i--)
#define FOR(i, a, b) for(int i = a; i < b; i++)
const int MAXN = 1e5 * 5;
const int INF = 1e9 + 7;
using namespace std;
int d[100][100];
int w[100][100];
string s;
typedef pair ii;
int x[101];
ii p[110];
vector< ii > v;
int pos[11];
int dist[100][100];
int main()
{
ios::sync_with_stdio(0); cin.tie(0);
#ifndef ONLINE_JUDGE
freopen("vao.inp", "r", stdin);
freopen("ra.out", "w", stdout);
#endif //MIKELHPDATKE
// cout<<"wtf"<> s;
//cout<
Recent Comments