답안 #1055783

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1055783 2024-08-13T05:21:19 Z 김은성(#11066) Pizza Party (CCO24_day1problem2) PyPy 3
3 / 12
586 ms 194052 KB
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
if(a.count(1) != b.count(1)):
    print(-1)
else:
    if(a == b[::-1]):
        print(1)
        print(*([1]*n))
        print(*([1]*n))
    else:
        print(2)
        print(*a)
        print(*b)
# 결과 실행 시간 메모리 Grader output
1 Correct 506 ms 160988 KB good job!
2 Correct 514 ms 161512 KB good job!
3 Correct 518 ms 163352 KB good job!
4 Correct 519 ms 163420 KB good job!
5 Correct 511 ms 163296 KB good job!
6 Correct 517 ms 163300 KB good job!
7 Correct 576 ms 163296 KB good job!
8 Correct 523 ms 161384 KB good job!
9 Correct 523 ms 161500 KB good job!
10 Correct 519 ms 161104 KB good job!
11 Correct 521 ms 161076 KB good job!
12 Correct 518 ms 160996 KB good job!
13 Correct 22 ms 18236 KB good job!
14 Correct 22 ms 18200 KB good job!
15 Correct 22 ms 18228 KB good job!
16 Correct 243 ms 143332 KB good job!
17 Correct 244 ms 143328 KB good job!
18 Correct 245 ms 143332 KB good job!
19 Correct 256 ms 143424 KB good job!
20 Correct 248 ms 143320 KB good job!
21 Correct 244 ms 143260 KB good job!
22 Correct 514 ms 160992 KB good job!
23 Correct 22 ms 18232 KB good job!
# 결과 실행 시간 메모리 Grader output
1 Incorrect 36 ms 22060 KB Integer element c_i[1] equals to 3140, violates the range [1, 2]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 586 ms 194052 KB Integer element c_i[1] equals to 134990, violates the range [1, 2]
2 Halted 0 ms 0 KB -