Skip to content

Instantly share code, notes, and snippets.

@nak3
Created February 10, 2019 08:01
Show Gist options
  • Save nak3/da2ab62a3cba268d328779c67695ea1f to your computer and use it in GitHub Desktop.
Save nak3/da2ab62a3cba268d328779c67695ea1f to your computer and use it in GitHub Desktop.
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"math/big"
)
func main() {
sc := NewScanner()
ss := sc.NextLine()
s := strings.Split(ss, " ")
bigA := new(big.Int)
bigB := new(big.Int)
bigA.SetString(s[0], 10)
bigB.SetString(s[1], 10)
fmt.Println(bigA.Add(bigA, bigB)) // output for debug
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment