Skip to content

Instantly share code, notes, and snippets.

View genya0407's full-sized avatar

Yusuke Sangenya genya0407

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package main
import "math/big"
func main() {
a := big.NewInt(1)
a.Lsh(a, 128)
thousand := big.NewInt(1000)
for i := 0; i < 100000; i++ {
a.Mul(a, thousand)
go
real 0m3.372s
user 0m3.218s
sys 0m0.048s
real 0m3.324s
user 0m3.238s
sys 0m0.053s
package main
import "fmt"
import "math/big"
func main() {
res1 := big.NewInt(1)
for i := 1; i <= 100000; i++ {
res1.Mul(res1, big.NewInt(int64(i)))
}
package main
import "fmt"
import "math/big"
func main() {
res1 := big.NewInt(1)
for i := 1; i <= 100000; i++ {
res1.Mul(res1, big.NewInt(int64(i)))
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.