# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
114300 | tincamatei | Lamps (JOI19_lamps) | C++14 | 144 ms | 27896 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
char getChar(FILE *fin) {
char ch = fgetc(fin);
while(!isdigit(ch))
ch = fgetc(fin);
return ch;
}
const int MAX_N = 1000000;
char str1[1+MAX_N];
char str2[1+MAX_N];
int dp[1+MAX_N][3][2];
// dp[N][0/1/2][0/1] = numarul minim de operatii daca la sfarsit n-am/am set 0/am set 1 si daca n-am/am operatie de xor
int main() {
int N, rez = MAX_N;
scanf("%d", &N);
for(int i = 1; i <= N; ++i)
str1[i] = getChar(stdin);
for(int i = 1; i <= N; ++i)
str2[i] = getChar(stdin);
for(int i = 0; i <= N; ++i)
컴파일 시 표준 에러 (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... |