# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
251946 | nnnnnnnnnnnnnnnn | Lamps (JOI19_lamps) | C++14 | 154 ms | 18160 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef pair<ll,int> pli;
typedef pair<int,ll> pil;
typedef pair<ll,ll> pll;
const int N = 1e6,inf = 1e9;
int n;
string a,b;
int dp[4][N];
// ->0
// ->1
// flip
int solve()
{
int i,j,k;
for(i=0;i<4;i++)
{
for(j=0;j<n;j++)
{
dp[i][j] = inf;
}
}
if(a[0]==b[0])
{
if(a[0]=='0') dp[0][0] = 1;
else dp[1][0] = 1;
dp[3][0] = 0;
컴파일 시 표준 에러 (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... |