UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#128810#1177. 稀疏矩阵Nick111007ms1236kbC++295b2021-05-01 15:26:482021-05-01 15:26:50

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1220kb

input:

51 46
0 0 72 99 0 0 0 54 0 0 0 0 0 0 0 0 0 0 180 0 0 111 0 0 0 96 0 147 0 0 0 0 45 42 0 24 0 0 102 0...

output:

1 3 72
1 4 99
1 8 54
1 19 180
1 22 111
1 26 96
1 28 147
1 33 45
1 34 42
1 36 24
1 39 102
1 41 21
1 4...

result:

ok 764 lines

Test #2:

score: 10
Accepted
time: 4ms
memory: 1236kb

input:

86 98
0 0 0 69 0 243 0 0 39 195 0 0 0 0 0 0 0 0 0 0 0 0 0 123 0 0 0 0 69 54 72 135 3 0 0 219 132 0 0...

output:

1 4 69
1 6 243
1 9 39
1 10 195
1 24 123
1 29 69
1 30 54
1 31 72
1 32 135
1 33 3
1 36 219
1 37 132
1 ...

result:

ok 2757 lines

Test #3:

score: 10
Accepted
time: 0ms
memory: 1212kb

input:

21 13
240 0 0 0 99 0 174 0 0 84 0 0 144
0 0 0 0 0 0 228 0 0 18 132 0 0
0 0 0 0 216 213 0 0 0 207 30 ...

output:

1 1 240
1 5 99
1 7 174
1 10 84
1 13 144
2 7 228
2 10 18
2 11 132
3 5 216
3 6 213
3 10 207
3 11 30
4 ...

result:

ok 93 lines

Test #4:

score: 10
Accepted
time: 0ms
memory: 1216kb

input:

36 13
0 0 69 135 180 0 0 0 0 0 0 72 0
0 126 243 0 0 0 0 0 0 0 0 144 0
0 0 96 0 60 0 186 0 0 0 0 0 0
...

output:

1 3 69
1 4 135
1 5 180
1 12 72
2 2 126
2 3 243
2 12 144
3 3 96
3 5 60
3 7 186
4 1 87
4 2 18
4 4 228
...

result:

ok 143 lines

Test #5:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

3 85
0 0 171 30 0 0 0 249 0 0 144 120 0 81 0 0 150 0 0 18 0 108 147 0 0 0 174 189 0 216 231 0 87 72 ...

output:

1 3 171
1 4 30
1 8 249
1 11 144
1 12 120
1 14 81
1 17 150
1 20 18
1 22 108
1 23 147
1 27 174
1 28 18...

result:

ok 81 lines

Test #6:

score: 10
Accepted
time: 3ms
memory: 1236kb

input:

69 99
0 54 180 0 0 39 207 0 246 0 0 0 0 0 0 0 0 0 0 0 237 0 213 201 0 0 90 0 99 249 117 24 93 0 0 69...

output:

1 2 54
1 3 180
1 6 39
1 7 207
1 9 246
1 21 237
1 23 213
1 24 201
1 27 90
1 29 99
1 30 249
1 31 117
1...

result:

ok 2228 lines

Test #7:

score: 10
Accepted
time: 0ms
memory: 1220kb

input:

42 28
213 162 114 0 0 0 198 0 0 0 99 0 0 0 0 84 0 0 0 21 0 78 0 0 0 0 0 165
0 21 0 0 0 66 0 0 225 0 ...

output:

1 1 213
1 2 162
1 3 114
1 7 198
1 11 99
1 16 84
1 20 21
1 22 78
1 28 165
2 2 21
2 6 66
2 9 225
2 27 ...

result:

ok 375 lines

Test #8:

score: 10
Accepted
time: 0ms
memory: 1216kb

input:

22 33
75 0 0 0 0 0 90 198 0 0 243 0 180 168 0 0 0 168 0 21 0 0 0 24 81 0 0 246 18 0 0 90 0
0 108 60 ...

output:

1 1 75
1 7 90
1 8 198
1 11 243
1 13 180
1 14 168
1 18 168
1 20 21
1 24 24
1 25 81
1 28 246
1 29 18
1...

result:

ok 220 lines

Test #9:

score: 10
Accepted
time: 0ms
memory: 1208kb

input:

25 95
135 0 0 0 204 93 0 0 129 0 0 138 0 75 0 0 0 90 0 0 0 0 36 177 105 0 0 0 0 222 0 0 0 177 0 0 0 ...

output:

1 1 135
1 5 204
1 6 93
1 9 129
1 12 138
1 14 75
1 18 90
1 23 36
1 24 177
1 25 105
1 30 222
1 34 177
...

result:

ok 752 lines

Test #10:

score: 10
Accepted
time: 0ms
memory: 1208kb

input:

17 5
0 0 96 0 102
0 0 0 0 0
198 69 0 0 0
0 0 0 204 0
0 6 0 165 39
219 0 111 117 0
210 0 0 0 0
0 102 ...

output:

1 3 96
1 5 102
3 1 198
3 2 69
4 4 204
5 2 6
5 4 165
5 5 39
6 1 219
6 3 111
6 4 117
7 1 210
8 2 102
9...

result:

ok 32 lines