-->
当前位置:首页 > 题库

PROGRAMMING:Transpose operation of sparse matrix represented by triple order table I

Luz5年前 (2021-05-10)题库436
Sparse matrix transpose represented by triple order table.
###Input format:
Enter the number of rows m, the number of columns N and the number of non-zero elements t of the first behavior matrix.
Enter row t in the order of row priority, with 3 numbers in each row, representing the row label, column label and value of non-zero elements respectively.
###Output format:
Output the transposed result of triple sequence table. Each row outputs the row label, column label and value of non-zero elements. The row label, column label and value are separated by spaces, with a total of T rows.
###Input sample 1:
```in
3 4 3
0 1 -5
1 0 1
2 2 2
```
###Output sample 1:
```out
0 1 1
1 0 -5
2 2 2
```







answer:If there is no answer, please comment