type
status
date
slug
summary
tags
category
icon
password
学习小结:
例题一:
https://www.lanqiao.cn/problems/19729/learning/?isWithAnswer=true连连看
进行优化
题目描述:
找到了优化方案,就是使用字典的键值对操作,关键是怎么将唯一确定的值作为那个键
这里还学到了对于n*m的矩阵,无论他是不是主对角线,只要是对角线,他的坐标的相加,相减一定是一个确定的值
我们就可以将其作为键,这里正好使用collections的两个函数,计算其某个数字出现的次数
defaultdict函数和Counter函数
题解:
问题and重点
例题二:
神奇闹钟
题目描述
这个题目就是考的datetime的使用,只要知道这几个函数的使用,包出来的
题解:
问题and重点
例题三:
题目描述:
题解:
问题and重点:
- Author:xiaowaaa
- URL:https://www.xiaowaaa.asia//article/1a65df8d-8884-803c-8dba-ef9fcf5bf225
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!