# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
47198 | 2018-04-29T02:27:38 Z | Kmcode | Hidden Sequence (info1cup18_hidden) | C++14 | 25 ms | 580 KB |
#include "bits/stdc++.h" #include "grader.h" using namespace std; vector<int> findSequence(int N) { vector<int> vv; int ls = 0; while (N--) { while (1) { vv.insert(vv.begin() + vv.size() - ls, 0); if (isSubsequence(vv)) { break; } vv[vv.size() - ls - 1] ^= true; if (isSubsequence(vv)) { break; } vv.erase(vv.begin() + vv.size() - (ls+1), vv.begin() + vv.size() - (ls+1) + 1); ls++; } } return vv; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 2 ms | 248 KB | Output is partially correct: Maximum length of a query = 8 |
2 | Partially correct | 2 ms | 308 KB | Output is partially correct: Maximum length of a query = 10 |
3 | Partially correct | 2 ms | 344 KB | Output is partially correct: Maximum length of a query = 8 |
4 | Partially correct | 2 ms | 492 KB | Output is partially correct: Maximum length of a query = 9 |
5 | Partially correct | 2 ms | 492 KB | Output is partially correct: Maximum length of a query = 7 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 12 ms | 492 KB | Output is partially correct: Maximum length of a query = 165 |
2 | Partially correct | 13 ms | 504 KB | Output is partially correct: Maximum length of a query = 178 |
3 | Partially correct | 16 ms | 504 KB | Output is partially correct: Maximum length of a query = 190 |
4 | Partially correct | 17 ms | 504 KB | Output is partially correct: Maximum length of a query = 153 |
5 | Partially correct | 25 ms | 504 KB | Output is partially correct: Maximum length of a query = 188 |
6 | Partially correct | 8 ms | 504 KB | Output is partially correct: Maximum length of a query = 172 |
7 | Partially correct | 12 ms | 504 KB | Output is partially correct: Maximum length of a query = 192 |
8 | Partially correct | 13 ms | 504 KB | Output is partially correct: Maximum length of a query = 164 |
9 | Partially correct | 14 ms | 548 KB | Output is partially correct: Maximum length of a query = 200 |
10 | Partially correct | 15 ms | 548 KB | Output is partially correct: Maximum length of a query = 199 |
11 | Partially correct | 15 ms | 580 KB | Output is partially correct: Maximum length of a query = 190 |
12 | Partially correct | 9 ms | 580 KB | Output is partially correct: Maximum length of a query = 199 |
13 | Partially correct | 16 ms | 580 KB | Output is partially correct: Maximum length of a query = 200 |