# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1045575 | 2024-08-06T05:53:51 Z | pcc | Wiring (IOI17_wiring) | C++17 | 28 ms | 3932 KB |
#include "wiring.h" #include <bits/stdc++.h> using namespace std; #define ll long long long long min_total_length(std::vector<int> r, std::vector<int> b) { ll ans = 0; reverse(r.begin(),r.end()); int c = min(r.size(),b.size()); for(int i = 0;i<c;i++){ ans += b[i]-r[i]; } for(int i = c;i<r.size();i++){ ans += b[0]-r[i]; } for(int i = c;i<b.size();i++){ ans += b[i]-r[0]; } return ans; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 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 | 0 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 12 ms | 2936 KB | Output is correct |
4 | Correct | 11 ms | 2908 KB | Output is correct |
5 | Correct | 10 ms | 2908 KB | Output is correct |
6 | Correct | 13 ms | 3776 KB | Output is correct |
7 | Correct | 28 ms | 3872 KB | Output is correct |
8 | Correct | 14 ms | 3932 KB | Output is correct |
9 | Correct | 19 ms | 3932 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Incorrect | 0 ms | 348 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 | 348 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 | 344 KB | 3rd lines differ - on the 1st token, expected: '25859', found: '-4909' |
2 | Halted | 0 ms | 0 KB | - |