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
287 B
Go
23 lines
287 B
Go
// -*- go -*-
|
|
|
|
package main
|
|
|
|
// @Test 0 0 = 10
|
|
// @Test 1 2 = 13
|
|
func main(a, b int32) int {
|
|
var src [5]int32
|
|
for i := 0; i < len(src); i++ {
|
|
src[i] = i
|
|
}
|
|
|
|
var dst [10]int32
|
|
copy(dst, src)
|
|
|
|
var sum int32
|
|
for i := 0; i < len(dst); i++ {
|
|
sum += dst[i]
|
|
}
|
|
|
|
return a + b + sum
|
|
}
|