# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
822956 | 2023-08-12T06:03:32 Z | Shithila | Wiring (IOI17_wiring) | C++14 | 22 ms | 1864 KB |
#include "wiring.h" #include<bits/stdc++.h> using namespace std; long long min_total_length(std::vector<int> r, std::vector<int> b) { int rlen=r.size(); int blen=b.size(); long long x=0; int y=0; if(rlen<blen) { for(int i=0;i<blen;i++) { x+=b[i]-r[rlen-1]; } for(int i=0;i<rlen-1;i++) { x+=r[rlen-1]-r[i]; } } else { for(int i=0;i<rlen;i++) { x+=b[0]-r[i]; } for(int i=1;i<blen;i++) { x+=b[i]-b[0]; } } return x; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | 3rd lines differ - on the 1st token, expected: '25859', found: '-4909' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 212 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 12 ms | 1404 KB | Output is correct |
4 | Correct | 15 ms | 1408 KB | Output is correct |
5 | Correct | 22 ms | 1404 KB | Output is correct |
6 | Correct | 17 ms | 1860 KB | Output is correct |
7 | Correct | 20 ms | 1864 KB | Output is correct |
8 | Correct | 17 ms | 1860 KB | Output is correct |
9 | Correct | 21 ms | 1840 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 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 | 0 ms | 212 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 | 0 ms | 212 KB | 3rd lines differ - on the 1st token, expected: '25859', found: '-4909' |
2 | Halted | 0 ms | 0 KB | - |