# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
928134 | 2024-02-15T21:17:11 Z | SUNWOOOOOOOO | 카니발 티켓 (IOI20_tickets) | C++17 | 1 ms | 348 KB |
#include "tickets.h" #include <bits/stdc++.h> using namespace std; using LL = long long; LL find_maximum(int k, vector<vector<int>> x) { int n = x.size(), m = x[0].size(); LL ans = 0; for (int i = 0; i < n; i++){ LL sum = 0; for (int j = 0; j < n; j++) sum += abs(x[j][0] - x[i][0]); ans = min(ans, sum); } vector<vector<int>> s; for (int i = 0; i < n; i++) s.push_back({0}); allocate_tickets(s); return ans; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Contestant returned 298620960 but the tickets gives a total value of 0 |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Contestant returned 298620960 but the tickets gives a total value of 0 |
2 | Halted | 0 ms | 0 KB | - |