QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#612735#9439. Aim Highucup-team008#AC ✓15ms10684kbPython3676b2024-10-05 12:44:222024-10-05 12:44:24

Judging History

This is the latest submission verdict.

  • [2024-10-05 12:44:24]
  • Judged
  • Verdict: AC
  • Time: 15ms
  • Memory: 10684kb
  • [2024-10-05 12:44:22]
  • Submitted

answer

data = """35
4 0 4 -1 3 -1
3 -2 2 -2 2 -1
1 -2 0 -2 0 -1
0 -3 1 -3 1 -2
3 -3 2 -3 2 -2
2 -2 1 -2 1 -1
0 -1 1 -1 1 0
3 -1 2 -1 2 0
0 -1 1 -1 1 0
3 -1 2 -1 2 0
1 0 0 0 0 1
2 0 1 0 1 1
2 0 1 0 1 1
3 0 2 0 2 1
1 1 0 1 0 2
2 1 1 1 1 2
1 2 0 2 0 3
-5 0 -5 -1 -4 -1
-4 -2 -3 -2 -3 -1
-2 -2 -1 -2 -1 -1
-1 -3 -2 -3 -2 -2
-4 -3 -3 -3 -3 -2
-3 -2 -2 -2 -2 -1
-1 -1 -2 -1 -2 0
-4 -1 -3 -1 -3 0
-1 -1 -2 -1 -2 0
-4 -1 -3 -1 -3 0
-2 0 -1 0 -1 1
-3 0 -2 0 -2 1
-3 0 -2 0 -2 1
-4 0 -3 0 -3 1
-2 1 -1 1 -1 2
-3 1 -2 1 -2 2
-2 2 -1 2 -1 3
-1 3 0 3 0 4"""
t = int(input())
for _ in range(t):
  if int(input()) <= 4:
    print(data)
  else:
    print(-1)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10684kb

input:

1
1

output:

35
4 0 4 -1 3 -1
3 -2 2 -2 2 -1
1 -2 0 -2 0 -1
0 -3 1 -3 1 -2
3 -3 2 -3 2 -2
2 -2 1 -2 1 -1
0 -1 1 -1 1 0
3 -1 2 -1 2 0
0 -1 1 -1 1 0
3 -1 2 -1 2 0
1 0 0 0 0 1
2 0 1 0 1 1
2 0 1 0 1 1
3 0 2 0 2 1
1 1 0 1 0 2
2 1 1 1 1 2
1 2 0 2 0 3
-5 0 -5 -1 -4 -1
-4 -2 -3 -2 -3 -1
-2 -2 -1 -2 -1 -1
-1 -3 -2 -3 -2 ...

result:

ok Output is valid. OK

Test #2:

score: 0
Accepted
time: 15ms
memory: 10524kb

input:

6
1
2
3
4
5
6

output:

35
4 0 4 -1 3 -1
3 -2 2 -2 2 -1
1 -2 0 -2 0 -1
0 -3 1 -3 1 -2
3 -3 2 -3 2 -2
2 -2 1 -2 1 -1
0 -1 1 -1 1 0
3 -1 2 -1 2 0
0 -1 1 -1 1 0
3 -1 2 -1 2 0
1 0 0 0 0 1
2 0 1 0 1 1
2 0 1 0 1 1
3 0 2 0 2 1
1 1 0 1 0 2
2 1 1 1 1 2
1 2 0 2 0 3
-5 0 -5 -1 -4 -1
-4 -2 -3 -2 -3 -1
-2 -2 -1 -2 -1 -1
-1 -3 -2 -3 -2 ...

result:

ok Output is valid. OK

Extra Test:

score: 0
Extra Test Passed