返回博主主页
摘要: 1 A. balls game import math # 1. 从左到有遍历列表元素,发现数据组,第一个元素为正,第二个元素为负 # 判断是否会吃掉还是消除 def judge(one_list): if len(one_list) < 2: # 长度等于1的列表不需要传进来,需要提前判断 # p 阅读全文
posted @ 2020-05-30 17:39 懒惰的星期六 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 一、question1 1.问题说明 2-9对应九宫格数字键盘的字母 2.输入23 3.输出 ad bd cd ae be ce af bf cf 4.完整代码 if __name__ == "__main__": import itertools dic = {2:['a', 'b', 'c'], 阅读全文
posted @ 2020-05-30 10:50 懒惰的星期六 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述 Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots 阅读全文
posted @ 2020-05-30 00:54 懒惰的星期六 阅读(352) 评论(0) 推荐(0) 编辑

Welcome to here

主页