mirror of
https://github.com/tiennm99/claoj.git
synced 2026-10-13 14:15:56 +00:00
feat(go): add aplusb
This commit is contained in:
1 parent
8503b93183
commit
3f4a209ff9
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
in := bufio.NewReader(os.Stdin)
|
||||
out := bufio.NewWriter(os.Stdout)
|
||||
defer out.Flush()
|
||||
|
||||
var n int
|
||||
fmt.Fscan(in, &n)
|
||||
for ; n > 0; n-- {
|
||||
var a, b int64
|
||||
fmt.Fscan(in, &a, &b)
|
||||
fmt.Fprintln(out, a+b)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user