QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#465925#7227. The Magic SquareMaMengQiWA 0ms3868kbC++201.7kb2024-07-07 13:48:582024-07-07 13:48:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3564kb

input:

2

output:

Impossible

result:

ok No solution for 2 squares

Test #2:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

4

output:

Possible
2
1 2 
3 4 

result:

ok answer 4 squares of 1 different sizes in total 2 * 2

Test #3:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

1

output:

Possible
1 1

result:

ok answer 1 squares of 1 different sizes in total 1 * 1

Test #4:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

3

output:

Impossible

result:

ok No solution for 3 squares

Test #5:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

5

output:

Impossible

result:

ok No solution for 5 squares

Test #6:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

6

output:

Possible
3
1 1 2 
1 1 3 
4 5 6 

result:

ok answer 6 squares of 2 different sizes in total 3 * 3

Test #7:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

7

output:

Possible
4
1 6 2 2 
5 7 2 2 
3 3 4 4 
3 3 4 4 

result:

ok answer 7 squares of 2 different sizes in total 4 * 4

Test #8:

score: 0
Accepted
time: 0ms
memory: 3864kb

input:

8

output:

Possible
4
1 1 1 2 
1 1 1 3 
1 1 1 4 
5 6 7 8 

result:

ok answer 8 squares of 2 different sizes in total 4 * 4

Test #9:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

9

output:

Possible
3
1 8 2 
7 9 3 
4 5 6 

result:

ok answer 9 squares of 1 different sizes in total 3 * 3

Test #10:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

10

output:

Possible
4
1 6 2 9 
5 7 8 10 
3 3 4 4 
3 3 4 4 

result:

ok answer 10 squares of 2 different sizes in total 4 * 4

Test #11:

score: -100
Wrong Answer
time: 0ms
memory: 3636kb

input:

11

output:

Possible
4
1 1 1 2 
1 1 10 3 
1 9 11 4 
5 6 7 8 

result:

wrong answer Illegal construction