〓Fly〓
〓Fly〓
全部文章
题解
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
/ 题解
(共26篇)
题解 | #走方格的方案数#
def f(n,m): dp=[[0 for i in range(n+1)] for j in range(m+1)] if n<0 or m<0: return 0 else: for j in range(m+1): ...
Python3
2022-04-10
0
220
题解 | #求最大连续bit数#
while True: try: s=bin(int(input()))[2:].split('0') print(len(max(s))) except: break
Python3
2022-04-09
0
212
题解 | #最长回文子串#
while True: try: s=input() m=0 for i in range(len(s)): for j in range(i+1,len(s)+1): if s[i:j]...
Python3
2022-04-09
0
307
题解 | #统计大写字母个数#
while True: try: s=input() c=0 for i in s: if i.isupper(): c+=1 print(c) except: ...
Python3
2022-04-09
0
199
题解 | #二维数组操作#
while True: try: m,n=map(int,input().split()) x1,y1,x2,y2=map(int,input().split()) ax,ay=int(input()),int(input()) ...
Python3
2022-04-09
0
220
题解 | #整型数组合并#
while True: try: a,b,c,d=int(input()),input().split(),int(input()),input().split() print(''.join(map(str,sorted(map(int,set(b[:a]+...
Python3
2022-04-08
0
194
题解 | #尼科彻斯定理#
while True: try: n = int(input()) l = [i for i in range(1, n**3+1) if i%2 != 0] for i in range(len(l)): if sum...
Python3
2022-04-08
0
210
题解 | #计算日期到天数转换#
a=input().split() b=0 d1={1:31,2:29,3:31,4:30,5:31,6:30,7:31,8:31,9:30,10:31,11:30,12:31} d2={1:31,2:28,3:31,4:30,5:31,6:30,7:31,8:31,9:30,10:31,11:30...
Python3
2022-04-07
0
243
题解 | #输出单向链表中倒数第k个结点#
class Node(): def __init__(self,data): self.data=data self.next=None class LinkList(): def __init__(self): self.head=N...
Python3
2022-04-05
0
304
题解 | #蛇形矩阵#
while True: try: num=int(input()) for i in range(num): str1="" for j in range(i+1,num+1): ...
Python3
2022-04-04
0
242
首页
上一页
1
2
3
下一页
末页