11 lines
135 B
Go
11 lines
135 B
Go
|
package q03
|
||
|
|
||
|
func solveP1(nums [][]int) (sum int) {
|
||
|
for _, row := range nums {
|
||
|
for _, n := range row {
|
||
|
sum += n
|
||
|
}
|
||
|
}
|
||
|
return
|
||
|
}
|