- 博客(5)
- 收藏
- 关注
原创 【蓝桥杯每日一练---最长不重复子串】
Given a string, find the length of the longest substring without repeating characters. https://leetcode.com/problems/longest-substring-without-repeating-characters/ x=input() a=set(x) print(a) i=0 for j in a: i=i+1 print(i) 修改后 l, r = 0, 0 ret
2022-01-22 00:28:32 252
原创 【蓝桥杯每日一练---杨辉三角】
a=[[1],[1,1]] n=int(input()) for i in range(n-2): b=a[-1] new=[1] for i in range(len(b)-1): new.append(b[i]+b[i+1]) new.append(1) a.append(new) for i in a: print(i)
2022-01-19 15:35:55 4417
原创 【蓝桥杯每日一练---真题小乌龟】
from turtle import * speed(0) fillcolor("yellow") for i in range(12): penup() fd(120) pendown() begin_fill() left(30) fd(80) right(60) fd(80) right(120) fd(80) right(60) fd(80) right(150) end_fill() .
2022-01-17 22:50:26 3743
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人