project euler Problem 52
来源:互联网 发布:湖南长沙软件外包公司 编辑:程序博客网 时间:2024/05/17 08:28
for i in range(1,1000000): L2=list(str(2*i)) L2.sort() L3=list(str(3*i)) L3.sort() L4=list(str(4*i)) L4.sort() L5=list(str(5*i)) L5.sort() L6=list(str(6*i)) L6.sort() """ print L2 print L3 print L4 print L5 print L6 """ if L2==L3 and L3==L4 and L4==L5 and L5==L6: print i
将数字转换成字符串,再转换成列表,列表重新排列后,用于比较。
- Project Euler problem 52
- project euler Problem 52
- Project Euler:Problem 52 Permuted multiples
- Euler Project Problem 6
- project euler problem 11
- Project Euler Problem 81
- Project Euler Problem 60
- Project Euler Problem 59
- Project Euler Problem 58
- Project Euler Problem 57
- Project Euler Problem 16
- Project Euler Problem 30
- Project Euler Problem 31
- Project Euler Problem 32
- Project Euler Problem 14
- Project Euler Problem 15
- Project Euler Problem 17
- Project Euler - Problem 18
- 汇编——字符串去重
- 第三次作业 作业题二
- JAVA 装饰类(装饰设计模式)
- Struts 2 配置struts.xml骨架
- 解决java compiler level does not match the version of the installed java project facet
- project euler Problem 52
- No Cortex-M Device found in JTAG chain
- SleepEx
- 数组的下标从0开始
- 使用HttpSessionListener接口实现用户在线状态监控
- TextView常用属性android:ellipsize
- 【物联网中间件平台-06】RFID刷卡拍照
- R.java常见问题解决方案
- 显示SD卡里的文件列表