CCC '05 S3 - Quantum Operations


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem types
Allowed languages
C++, Python
Sample Input 2
3
2 2
1 0
0 3
2 2
1 1
1 -1
2 2
1 0
0 1

Sample Output 2

3
-3
6
0
6
0

Tensor Product for Sample Input 2

1 0 1 0 0 0 0 0
0 1 0 1 0 0 0 0
1 0 -1 0 0 0 0 0
0 1 0 -1 0 0 0 0
0 0 0 0 3 0 3 0
0 0 0 0 0 3 0 3
0 0 0 0 3 0 -3 0
0 0 0 0 0 3 0 -3

Comments

There are no comments at the moment.