Created
February 10, 2019 08:01
-
-
Save nak3/da2ab62a3cba268d328779c67695ea1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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