# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1109312 | Kirill22 | Vim (BOI13_vim) | C++17 | 115 ms | 42588 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
const int inf = (int) 1e9, N = (int) 70000 + 22, A = 10;
int n, need[N], add = 0, ans = inf, all = 0;
string s, t = "";
vector<int> pos;
void upd(int& x, int y) {
x = min(x, y);
}
void solve() {
cin >> n >> s;
add = std::count(s.begin(), s.end(), 'e');
if (!add) {
cout << 0 << '\n';
return;
}
for (int i = 0; i < n; i++) {
if (s[i] != 'e') {
if (i && s[i - 1] == 'e') {
need[(int) t.size()] = 1;
pos.push_back((int) t.size());
}
t += s[i];
}
}
t.push_back('e');
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |