能力值:
( LV13,RANK:330 )
|
-
-
2 楼
大神 卡在此处,上午刚想明白,将得到的解加上模,向前推,穷举符合01-7f条件的
|
能力值:
(RANK:350 )
|
-
-
3 楼
|
能力值:
(RANK:1130 )
|
-
-
4 楼
补一下我的穷举脚本吧 居然没有Go语言格式
package main
import (
"encoding/base64"
"encoding/hex"
"fmt"
big "math/big"
)
func test() {
c := new(big.Int)
c.SetString("71639176673360967005214790689576394595", 10)
e := new(big.Int)
e.SetString("15691529100101820131", 10)
d := new(big.Int)
d.SetString("98395538376216701876091105738065053007", 10)
N := new(big.Int)
x := new(big.Int)
x.SetString("55986991232018409201158808992848352475", 10)
N.SetString("114433688655117320765854989491151409201", 10)
x.Add(x, N)
times := 0
for {
str := x.Text(16)
l := len(str)
if l > 55 {
break
}
if l%2 == 1 {
str = "0" + str
}
flag := false
b, _ := hex.DecodeString(str)
for _, v := range b {
if v > 0x7f {
flag = true
break
}
}
if !flag {
// 组装一下
t := "5057555D54535551585A5B5D5D5F5742414340452D2D5053575056555150515C5E595C5F584343424442404E424C404258565A555453565C5953595C5C2D2D"
// 如果不足54位,用90补齐
for len(str) < 54 {
str = "90" + str
}
t += str
bb, _ := hex.DecodeString(t)
//fmt.Println(ttt)
str2 := base64.StdEncoding.EncodeToString(bb)
times++
fmt.Println("[", times, "]: ", str2)
if times >= 865 {
break
}
}
x.Add(x, N)
}
}
func main() {
test()
return
}
|
|
|