# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
70568 | 2018-08-23T06:17:54 Z | Kmcode | Wiring (IOI17_wiring) | C++14 | 3 ms | 536 KB |
#include <bits/stdc++.h> using namespace std; #include "wiring.h" long long min_total_length(std::vector<int> r, std::vector<int> b) { int rr=r.size()-1; int bb=0; long long int dist=0; while(rr>=0||bb<b.size()){ dist+=b[min((int)b.size(),bb)]-r[max(0,rr)]; rr--; bb++; } return dist; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 248 KB | 3rd lines differ - on the 1st token, expected: '25859', found: '-9259' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 488 KB | 3rd lines differ - on the 1st token, expected: '904', found: '624' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 488 KB | Output is correct |
2 | Incorrect | 3 ms | 528 KB | 3rd lines differ - on the 1st token, expected: '17703', found: '-19052' |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 536 KB | 3rd lines differ - on the 1st token, expected: '27', found: '12' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 248 KB | 3rd lines differ - on the 1st token, expected: '25859', found: '-9259' |
2 | Halted | 0 ms | 0 KB | - |