# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
119130 | tmwilliamlin168 | Vim (BOI13_vim) | C++14 | 67 ms | 22916 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int mxN=7e4;
int n, a1, t[mxN+1], m, dp1[mxN+1][10], dp2[mxN+1][10][10];
string s;
bool u[mxN];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> s;
for(int i=0, j=0; i<n; ++i) {
if(s[i]=='e') {
a1+=2;
j=1;
} else {
t[m]=s[i]-'a'-(s[i]>'e');
u[m++]=j;
j=0;
}
}
t[m]=9;
memset(dp2[0], 0x3f, sizeof(dp2[0]));
for(int i=0; i<10; ++i)
dp1[0][i]=t[0]==i?0:2;
auto a=[](bool b) {
return b?9*n:0;
};
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |