用python实现PAT1057数零壹
来源:互联网 发布:星际战甲腐蚀投射数据 编辑:程序博客网 时间:2024/06/06 07:43
s=input().lower()count1=0for i in s: if i.isalpha(): count1+=ord(i)%96a=0;b=0while count1!=0: if count1%2==0: a+=1 else: b+=1 count1//=2print(a,b)
阅读全文
0 0
- 用python实现PAT1057数零壹
- PAT1057. 数零壹
- PAT1057. 数零壹(20)
- PAT1057
- PAT1057.Stack (30)
- pat1057 stack 分块的做法
- 用Python实现ORM
- 用Python实现Spy++
- 用Python实现栈
- 用Python实现队列
- 用Python实现Spy++
- 用python实现二项树
- 用Python实现ROT13
- BLAST-用python实现
- 用python实现排列
- 用 python 实现批处理文件
- 用python实现单链表
- 用 Python 实现 LDA
- 正则表达式
- 第三讲 类的验证,准备,解析和初始化
- Java 基础知识
- An Intuitive Explanation of Convolutional Neural Networks
- 系统引导方式GRUB的详细介绍
- 用python实现PAT1057数零壹
- jQuery之位置操作
- 洛谷P1190 接水问题(接个水事情都这么多qwq)
- MSCOMM32串口编程循环读取数据
- vim的使用大全
- JZOJ 5431. 【NOIP2017提高A组集训10.28】序列操作
- Python Imaging Library:ImageDraw Module(图像绘制模块)
- SDNU OJ 1060.找第K大数
- 成为一名高级java工程师需要读那些书