# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
105070 | IOrtroiii | Lamps (JOI19_lamps) | C++14 | 109 ms | 14844 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int N = 1000100;
int n;
char from[N], to[N];
int f[N][3];
char get(char a,int x) {
if (x == 0) return '0';
if (x == 1) return '1';
if (x == 2) return a;
}
int main() {
scanf("%d %s %s", &n, from + 1, to + 1);
f[0][2] = 0;
f[0][0] = f[0][1] = n + 5;
for (int i = 1; i <= n; ++i) {
for (int x = 0; x < 3; ++x) {
f[i][x] = n + 5;
}
for (int x = 0; x < 3; ++x) {
for (int xx = 0; xx < 3; ++xx) {
int nw = f[i - 1][x];
if (x != xx && xx != 2) {
++nw;
}
컴파일 시 표준 에러 (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... |