mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
22 lines
260 B
Go
22 lines
260 B
Go
// -*- go -*-
|
|
|
|
package main
|
|
|
|
// @Test 0 0 = 21
|
|
// @Test 1 2 = 24
|
|
func main(a, b int32) int {
|
|
arr := [3][2]int32{
|
|
{1, 2},
|
|
{3, 4},
|
|
{5, 6},
|
|
}
|
|
|
|
var sum int32
|
|
for i := 0; i < len(arr); i++ {
|
|
sum += arr[i][0]
|
|
sum += arr[i][1]
|
|
}
|
|
|
|
return sum + a + b
|
|
}
|