QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#699040#5172. 序程来未TheZone100 ✓0ms0kb/2.0kb2024-11-01 23:57:262024-11-01 23:57:26

Judging History

你现在查看的是最新测评结果

  • [2024-11-01 23:57:26]
  • 评测
  • 测评结果:100
  • 用时:0ms
  • 内存:0kb
  • [2024-11-01 23:57:26]
  • 提交

quantum1.out

Begin
Ry 0 0.781492 0
M 0
ReturnFull 14343375 0
End

quantum2.out

Begin
H 0 0
M 0
H 0 0
M 0
ReturnFull 1 2 3 4
End

quantum3.out

Begin
Ry 0 1.15928 0
IfM 0
Ry 0 1.91063 0
IfM 0
Return 1
Else
Return 2
Endif
Else
Ry 0 1.42745 0
IfM 0
Return 3
Else
Return 4
Endif
Endif
End

quantum4.out

Begin
H 0 0
M 0
H 0 0
M 0
Ry 0 2.2143 0
M 0
ReturnFull 1 1 3 2 4 4 3 3
End

quantum5.out

Begin
Rz 0 -1.81238857 0
Ry 0 1.98231317 0
Rz 0 -0.09824467 0
End

quantum6.out

Begin
T 0 0
T 0 0
H 0 0
M 0
ReturnFull 1 0
End

quantum7.out

Begin
H 0 0
End
Begin
H 0 0
M 0
ReturnFull -1 1
End

quantum8.out

Begin
Rx 0 -1.57079633 0
Rx 1 -1.57079633 0
End

quantum9.out

Begin
X 0 2
X 1 1
X 0 2
End

quantum10.out

Begin
H 1 0
X 0 0
Z 0 2
X 0 2
End

quantum11.out

Begin
Ry 0 1.91063324 0
Ry 1 1.98231317 0
Ry 0 -0.19648936 2
End

quantum12.out

Begin
X 0 0
Ry 1 2.36639928 1
X 0 2
Ry 2 2.30052398 2
X 1 4
Ry 3 2.21429744 4
X 2 8
Ry 4 2.09439510 8
X 3 16
Ry 5 1.91063324 16
X 4 32
Ry 6 1.57079633 32
X 5 64
End

quantum13.out

Begin
X 0 0
H 1 1
X 0 2
H 2 1
X 0 4
H 3 2
X 1 8
H 4 1
X 0 16
H 5 2
X 1 32
H 6 4
X 2 64
H 7 8
X 3 128
End

quantum14.out

Begin
X 0 0
X 1 0
Ry 2 1.15928 3
X 0 6
Ry 2 2.3664 3
X 1 5
Ry 3 1.23096 5
X 0 12
Ry 3 2.0944 5
X 2 9
Ry 3 1.91063 6
X 2 10
Ry 4 1.23096 9
X 0 24
Ry 4 1.5708 9
X 3 17
Ry 4 1.5708 10
X 3 18
Ry 4 1.5708 12
X 3 20
End

quantum15.out

Begin
X 0 0
X 1 0
Ry 2 1.15928 3
X 0 6
Ry 2 2.3664 3
X 1 5
Ry 3 1.23096 5
X 0 12
Ry 3 2.0944 5
X 2 9
Ry 3 1.91063 6
X 2 10
Ry 4 1.23096 9
X 0 24
Ry 4 1.5708 9
X 3 17
Ry 4 1.5708 10
X 3 18
Ry 4 1.5708 12
X 3 20
H 5 0
X 0 32
X 1 32
X 2 32
X 3 32
X 4 32
X 5 0
End

quantum16.out

Begin
X 3 1
X 3 2
X 3 4
End

quantum17.out

Begin
X 4 1
X 4 2
X 4 4
X 4 8
X 4 14
X 4 13
X 4 11
X 4 7
End

quantum18.out

Begin
H 0 0
End
Begin
H 0 0
M 0
ReturnFull 0 1
End

quantum19.out

Begin
H 0 0
H 1 0
X 2 1
X 2 2
End
Begin
M 0
ReturnFull 1 0
End
Begin
M 1
ReturnFull 1 0
End
Begin
M 2
ReturnFull 1 0
End

quantum20.out

Begin
H 0 0
H 1 0
Z 1 1
End
Begin
H 0 0
M 0
ReturnFull 0 1
End
Begin
M 0
ReturnFull 0 1
End
Begin
M 1
ReturnFull 0 1
End
Begin
H 1 0
M 1
ReturnFull 0 1
End

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 5
Accepted

input:

1

output:

Begin
Ry 0 0.781492 0
M 0
ReturnFull 14343375 0
End

result:

ok accepted.

Test #2:

score: 5
Accepted

input:

2

output:

Begin
H 0 0
M 0
H 0 0
M 0
ReturnFull 1 2 3 4
End

result:

ok accepted.

Test #3:

score: 5
Accepted

input:

3

output:

Begin
Ry 0 1.15928 0
IfM 0
Ry 0 1.91063 0
IfM 0
Return 1
Else
Return 2
Endif
Else
Ry 0 1.42745 0
IfM 0
Return 3
Else
Return 4
Endif
Endif
End

result:

ok accepted.

Test #4:

score: 5
Accepted

input:

4

output:

Begin
H 0 0
M 0
H 0 0
M 0
Ry 0 2.2143 0
M 0
ReturnFull 1 1 3 2 4 4 3 3
End

result:

ok accepted.

Test #5:

score: 5
Accepted

input:

5

output:

Begin
Rz 0 -1.81238857 0
Ry 0 1.98231317 0
Rz 0 -0.09824467 0
End

result:

ok accepted.

Test #6:

score: 5
Accepted

input:

6

output:

Begin
T 0 0
T 0 0
H 0 0
M 0
ReturnFull 1 0
End

result:

ok accepted.

Test #7:

score: 5
Accepted

input:

7

output:

Begin
H 0 0
End
Begin
H 0 0
M 0
ReturnFull -1 1
End

result:

ok accepted.

Test #8:

score: 5
Accepted

input:

8

output:

Begin
Rx 0 -1.57079633 0
Rx 1 -1.57079633 0
End

result:

ok accepted.

Test #9:

score: 5
Accepted

input:

9

output:

Begin
X 0 2
X 1 1
X 0 2
End

result:

ok accepted.

Test #10:

score: 5
Accepted

input:

10

output:

Begin
H 1 0
X 0 0
Z 0 2
X 0 2
End

result:

ok accepted.

Test #11:

score: 5
Accepted

input:

11

output:

Begin
Ry 0 1.91063324 0
Ry 1 1.98231317 0
Ry 0 -0.19648936 2
End

result:

ok accepted.

Test #12:

score: 5
Accepted

input:

12

output:

Begin
X 0 0
Ry 1 2.36639928 1
X 0 2
Ry 2 2.30052398 2
X 1 4
Ry 3 2.21429744 4
X 2 8
Ry 4 2.09439510 8
X 3 16
Ry 5 1.91063324 16
X 4 32
Ry 6 1.57079633 32
X 5 64
End

result:

ok accepted.

Test #13:

score: 5
Accepted

input:

13

output:

Begin
X 0 0
H 1 1
X 0 2
H 2 1
X 0 4
H 3 2
X 1 8
H 4 1
X 0 16
H 5 2
X 1 32
H 6 4
X 2 64
H 7 8
X 3 128
End

result:

ok accepted.

Test #14:

score: 5
Accepted

input:

14

output:

Begin
X 0 0
X 1 0
Ry 2 1.15928 3
X 0 6
Ry 2 2.3664 3
X 1 5
Ry 3 1.23096 5
X 0 12
Ry 3 2.0944 5
X 2 9
Ry 3 1.91063 6
X 2 10
Ry 4 1.23096 9
X 0 24
Ry 4 1.5708 9
X 3 17
Ry 4 1.5708 10
X 3 18
Ry 4 1.5708 12
X 3 20
End

result:

ok accepted.

Test #15:

score: 5
Accepted

input:

15

output:

Begin
X 0 0
X 1 0
Ry 2 1.15928 3
X 0 6
Ry 2 2.3664 3
X 1 5
Ry 3 1.23096 5
X 0 12
Ry 3 2.0944 5
X 2 9
Ry 3 1.91063 6
X 2 10
Ry 4 1.23096 9
X 0 24
Ry 4 1.5708 9
X 3 17
Ry 4 1.5708 10
X 3 18
Ry 4 1.5708 12
X 3 20
H 5 0
X 0 32
X 1 32
X 2 32
X 3 32
X 4 32
X 5 0
End

result:

ok accepted.

Test #16:

score: 5
Accepted

input:

16

output:

Begin
X 3 1
X 3 2
X 3 4
End

result:

ok accepted.

Test #17:

score: 5
Accepted

input:

17

output:

Begin
X 4 1
X 4 2
X 4 4
X 4 8
X 4 14
X 4 13
X 4 11
X 4 7
End

result:

ok accepted.

Test #18:

score: 5
Accepted

input:

18

output:

Begin
H 0 0
End
Begin
H 0 0
M 0
ReturnFull 0 1
End

result:

ok accepted.

Test #19:

score: 5
Accepted

input:

19

output:

Begin
H 0 0
H 1 0
X 2 1
X 2 2
End
Begin
M 0
ReturnFull 1 0
End
Begin
M 1
ReturnFull 1 0
End
Begin
M 2
ReturnFull 1 0
End

result:

ok accepted.

Test #20:

score: 5
Accepted

input:

20

output:

Begin
H 0 0
H 1 0
Z 1 1
End
Begin
H 0 0
M 0
ReturnFull 0 1
End
Begin
M 0
ReturnFull 0 1
End
Begin
M 1
ReturnFull 0 1
End
Begin
H 1 0
M 1
ReturnFull 0 1
End

result:

ok accepted.