package com.demo.test1; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.util.regex.Matcher; import java.util.regex.Pattern; public class HighArray { private final static int OFFSET = 538309; public static
#!/usr/bin/python env # coding:utf-8 import random def code(num=6): res = "" for i in range(num): # 数字0-9 num1 = str(random.randint(0, 9)) # 大写字母A-Z # a = chr(random.randint(65, 90)) # 小写字母a-z # b = chr(random.randint(97, 122)) # res += random.c
#-*- coding: utf-8-*-import timeimport math#获取3位数的水仙花数start1 = time.time()start = time.time() numbers = []for i in range(100,1000): a = i % 10 b = i // 10 % 10 c = i // 100 if((a ** 3) + (b ** 3) + (c ** 3)) == i: numbers.append(i) for j in numbers: