〓Fly〓
〓Fly〓
全部文章
分类
题解(36)
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
(共69篇)
题解 | #求最小公倍数#
while True: try: a,b=map(int,input().split()) for i in range(max(a,b),a*b+1,max(a,b)): if i%min(a,b) == 0: ...
Python3
2022-04-10
1
248
题解 | #密码强度等级#
while True: try: s=input() c=0 if len(s)<=4: c+=5 elif 5<=len(s)<=7: c+=10 ...
Python3
2022-04-10
0
250
题解 | #等差数列#
while True: try: n=int(input()) if 1<=n<=1000: l=list(range(2,2+3*(n-1)+1,3)) print(sum(l)) ...
Python3
2022-04-10
0
120
题解 | #走方格的方案数#
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
139
题解 | #求最大连续bit数#
while True: try: s=bin(int(input()))[2:].split('0') print(len(max(s))) except: break
Python3
2022-04-09
0
149
题解 | #最长回文子串#
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
189
题解 | #统计大写字母个数#
while True: try: s=input() c=0 for i in s: if i.isupper(): c+=1 print(c) except: ...
Python3
2022-04-09
0
133
题解 | #二维数组操作#
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
148
题解 | #整型数组合并#
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
123
题解 | #尼科彻斯定理#
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
144
首页
上一页
1
2
3
4
5
6
7
下一页
末页