# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
148460 | 2019-09-01T04:28:17 Z | 还没编好(#3801, cauchysheep, fjzzq2002, apiad) | List of Unique Integers (FXCUP4_unique) | C++17 | 6 ms | 560 KB |
#include <bits/stdc++.h> #include "unique.h" using namespace std; vector<int> PickUnique(int N) { vector<int> b(N,1); int p=0; for(int r=0;r<N;++r) { int g=UniqueCount(0,r); if(g<=p) b[r]=0; p=g; } p=0; for(int r=N-1;r>=0;--r) { int g=UniqueCount(r,N-1); if(g<=p) b[r]=0; p=g; } return b; } #ifdef LOCAL #include "grader.cpp" #endif
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 384 KB | Correct : C = 4 |
2 | Correct | 6 ms | 256 KB | Correct : C = 10 |
3 | Correct | 6 ms | 384 KB | Correct : C = 50 |
4 | Correct | 6 ms | 304 KB | Correct : C = 100 |
5 | Correct | 5 ms | 384 KB | Correct : C = 100 |
6 | Correct | 6 ms | 384 KB | Correct : C = 154 |
7 | Correct | 6 ms | 384 KB | Correct : C = 200 |
8 | Correct | 5 ms | 384 KB | Correct : C = 300 |
9 | Correct | 5 ms | 512 KB | Correct : C = 356 |
10 | Correct | 5 ms | 512 KB | Correct : C = 400 |
11 | Correct | 5 ms | 512 KB | Correct : C = 400 |
12 | Correct | 6 ms | 512 KB | Correct : C = 400 |
13 | Correct | 6 ms | 512 KB | Correct : C = 400 |
14 | Correct | 6 ms | 512 KB | Correct : C = 400 |
15 | Correct | 6 ms | 560 KB | Correct : C = 400 |