[Offer收割]编程练习赛54 register

Ended

Participants:154

Verdict:Time Limit Exceeded
Score:70 / 100
Submitted:2018-04-08 14:09:53

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 <algorithm>
using namespace std;
int main()
{
    int N, M;
    cin >> N >> M;
    
    vector<vector<int> > G;
    vector<int> P;
    
    for(int i=0; i<N; ++i) {
        P.push_back(0);
        G.push_back(vector<int>());
        for(int j=0; j<M; ++j) {
            G[i].push_back(0);
            cin >> G[i][j];
        }
    }
    
    for(int i=0; i<N; ++i)
        sort(G[i].begin(), G[i].end());
        
    int result = -1;
        
    while(true) {
        int _min = 1000001, _max = -1;
        int _min_i = -1;
        
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX