hiho week 27 register

Ended

Participants:637

Verdict:Time Limit Exceeded
Score:70 / 100
Submitted:2015-01-08 20:56:51

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <string>
#include <stdio.h>
using namespace std;
class Edge
{
public:
    int from;
    int to;
    int weight;
    Edge(){};
    Edge(int from,int to,int weight)
    {
        this->from=from;
        this->to=to;
        this->weight=weight;
    }
    void print()
    {
        cout<<from<<"\t"<<to<<"\t"<<weight<<endl;
    }
    bool friend operator< (Edge e1,Edge e2)
    {
        return e2.weight<e1.weight;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX