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
23 lines
272 B
Go
23 lines
272 B
Go
// -*- go -*-
|
|
|
|
package main
|
|
|
|
type Field [10]int32
|
|
|
|
// @Test 0 0 = 45
|
|
// @Test 1 10 = 56
|
|
func main(a, b int32) int {
|
|
var arr Field
|
|
|
|
for i := 0; i < len(arr); i++ {
|
|
arr[i] = i
|
|
}
|
|
|
|
var sum int32
|
|
for i := 0; i < len(arr); i++ {
|
|
sum += arr[i]
|
|
}
|
|
|
|
return sum + a + b
|
|
}
|