# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
443127 | Abrar_Al_Samit | Nivelle (COCI20_nivelle) | C++17 | 166 ms | 1164 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define debug(x) cerr << '[' << (#x) << "] = " << x << '\n';
template<class T> using ordered_set = tree<T, null_type , less<T> , rb_tree_tag , tree_order_statistics_node_update> ;
void PlayGround() {
int N;
cin >> N;
string s; cin >> s;
vector<vector<int>>app(26, vector<int>());
for(int i=0; i<N; ++i) {
int ch = s[i] - 'a';
app[ch].push_back(i);
}
double colorfulness = 2;
int l, r;
for(int i=0; i<N; ++i) {
vector<int>impIndices;
for(int c=0; c<26; ++c) {
auto it = lower_bound(app[c].begin(), app[c].end(), i);
if(it==app[c].end()) continue;
impIndices.push_back(*it);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |