# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
477016 | rainboy | Preokret (COCI18_preokret) | C11 | 1 ms | 292 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#define N 2879
#define M 2879
#define X 1440
int main() {
static int xx[N], yy[M];
int n, m, i, j, c, cnt1, cnt2;
scanf("%d", &n);
cnt1 = 0;
for (i = 0; i < n; i++) {
scanf("%d", &xx[i]);
if (xx[i] <= X)
cnt1++;
}
scanf("%d", &m);
for (j = 0; j < m; j++) {
scanf("%d", &yy[j]);
if (yy[j] <= X)
cnt1++;
}
i = 0, j = 0, c = 0, cnt2 = 0;
while (i < n || j < m) {
if (j == m || i < n && xx[i] < yy[j])
i++;
else
j++;
if (i < j && c != -1)
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |