# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
149260 | 2019-09-01T06:04:58 Z | 본인 방금 올솔하는 상상함(#3610, gs18113, dennisstar, red1108) | King of Chairs (FXCUP4_chairs) | C++17 | 188 ms | 10456 KB |
#include "king.h" #include<algorithm> using namespace std; long long SendInfo(vector<int> W, vector<int> C) { int N = W.size(); sort(W.begin(), W.end()); sort(C.begin(), C.end()); int j=0,cnt=0,bef=0; long long ret=0; for(int i=0;i<N;i++,j++){ while(j<C.size()&&W[i]>C[j]) j++; if(j>=C.size()){ return (1000000-bef); } bef = W[i]; } return (1000000-W[N-1]); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 11 ms | 1056 KB | Correct |
2 | Correct | 10 ms | 1056 KB | Correct |
3 | Correct | 11 ms | 548 KB | Correct |
4 | Correct | 11 ms | 1060 KB | Correct |
5 | Correct | 11 ms | 1052 KB | Correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 69 ms | 5944 KB | Correct |
2 | Correct | 114 ms | 9644 KB | Correct |
3 | Correct | 124 ms | 10452 KB | Correct |
4 | Correct | 125 ms | 10188 KB | Correct |
5 | Correct | 127 ms | 10184 KB | Correct |
6 | Correct | 130 ms | 10188 KB | Correct |
7 | Correct | 131 ms | 10456 KB | Correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 88 ms | 5940 KB | B = 6153 |
2 | Partially correct | 169 ms | 9648 KB | B = 3800 |
3 | Partially correct | 159 ms | 10444 KB | B = 293884 |
4 | Partially correct | 176 ms | 10448 KB | B = 1534 |
5 | Partially correct | 188 ms | 10444 KB | B = 4133 |
6 | Partially correct | 164 ms | 10244 KB | B = 2499 |
7 | Partially correct | 151 ms | 10192 KB | B = 293877 |
8 | Partially correct | 128 ms | 10448 KB | B = 1000000 |