Submission #104693

# Submission time Handle Problem Language Result Execution time Memory
104693 2019-04-08T20:10:15 Z promota Wiring (IOI17_wiring) C++14
0 / 100
2 ms 384 KB
#include<bits/stdc++.h>
long long min_total_length(std::vector<int> r,std::vector<int> b){
    long long minLen=0;
    int n=r.size();
    int m=b.size();
    for(int j=0;j<n-1;j++){
        minLen += b[0]-r[j];
    }
    for(int i=1;i<m;i++){
        minLen += b[i]-r[n-1];
    }
    return minLen;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB 3rd lines differ - on the 1st token, expected: '25859', found: '-26325'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB 3rd lines differ - on the 1st token, expected: '904', found: '943'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 364 KB 3rd lines differ - on the 1st token, expected: '316', found: '348'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB 3rd lines differ - on the 1st token, expected: '27', found: '-100'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB 3rd lines differ - on the 1st token, expected: '25859', found: '-26325'
2 Halted 0 ms 0 KB -