博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
leetcode1085
阅读量:7157 次
发布时间:2019-06-29

本文共 418 字,大约阅读时间需要 1 分钟。

1 class Solution: 2     def sumOfDigits(self, A: List[int]) -> int: 3         n = len(A) 4         if n == 0: 5             return 1 6         minnum = min(A) 7         strnum = str(minnum) 8         r = 0 9         for i in range(len(strnum)):10             r += int(strnum[i])11         if r % 2 == 1:12             return 013         else:14             return 1

 

转载于:https://www.cnblogs.com/asenyang/p/11029370.html

你可能感兴趣的文章
使用Gradle构建工具开发Kotlin Web应用程序
查看>>
vmware测试环境虚拟机模板
查看>>
vsphere client 无法连接Vcenter主机
查看>>
Windows 2008 防火墙开放端口
查看>>
Highcharts-4.1.7使用实例(关键部分代码)
查看>>
PHP字符串分离、截取函数(explod)
查看>>
我的友情链接
查看>>
因特尔和谷歌合作优化Android
查看>>
Windows 7 部署工具DISM学习(二)--添加补丁
查看>>
2012ftp和website配置
查看>>
我的友情链接
查看>>
又可以访问 OSC 主站啦
查看>>
Oschat IM 开源即时通讯项目介绍
查看>>
linux 进程监控
查看>>
window下svn,git混合使用
查看>>
wordpress插件之All in One SEO Pack:整体优化你的wordpress博客
查看>>
编译安装PHP出现configure: error: mysql configure failed. Please check config.log的解决方法...
查看>>
用win7虚拟无线路由上网
查看>>
J2EEweb开发乱码问题
查看>>
React学习(11)—— 高阶应用:Web组件
查看>>