Submission #61667

#TimeUsernameProblemLanguageResultExecution timeMemory
61667KHUSRAVWiring (IOI17_wiring)C++14
Compilation error
0 ms0 KiB
#include "grader.h"
using namespace std ;
long long min_total_length(vector<int > r , vector<int> b){

    /*long long used[100001] , ans = 0 , u1[100001] , u2[100001];
    vector<pair<int , pair<int , int > > > v ;
    for(int i = 0 ; i <= 100000 ; i++)
        u1[i] = u2[i] = 0;

    if(r.size() > b.size())
        swap(r , b);
    for(int i = 0 ; i < r.size() ; i ++){
        for(int j = 0 ; j < b.size() ; j ++){
            v.push_back({abs(r[i] - b[j]) , {i , j}});
            u1[i] ++ ;
            u2[j] ++ ;
            ans = ans + abs(r[i] - b[j]);
        }
    }

    sort(v.begin() , v.end());
    reverse(v.begin() , v.end());
    for(int i = 0 ; i < v.size() ; i++){
        cout << v[i].first<<" "<<v[i].second.first<<" "<<v[i].second.second<<'\n';
    }
    for(int i = 0 ; i < v.size() ; i++){
        if(u1[v[i].second.first] > 1 && u2[v[i].second.second] > 1){
            ans = ans - v[i].first;
            u1[v[i].second.first] --;
            u2[v[i].second.second] --;
        }
        else{
            //cout << r[v[i].second.first] <<" - "<<b[v[i].second.second] <<'\n';
        }
    }*/
    return 1 ;

}

Compilation message (stderr)

wiring.cpp:1:10: fatal error: grader.h: No such file or directory
 #include "grader.h"
          ^~~~~~~~~~
compilation terminated.