克里斯V
克里斯V
全部文章
分类
题解(24)
归档
标签
去牛客网
登录
/
注册
克里斯V的博客
全部文章
(共16篇)
题解 | #密码游戏#
s = input() l = list(map(int,s)) l2 = list(map(lambda x:(x+3)%9,l)) l2[0],l2[2] = l2[2],l2[0] l2[1],l2[3] = l2[3],l2[1] ss = list(map(str,l2)) print('...
Python3
2022-06-26
5
382
题解 | #小飞机#
print('**'.center(12)) print('**'.center(12)) print('*'*12) print('*'*12) print('* *'.center(12)) print('* *'.center(12))
字符串
Python3
2022-06-21
0
268
题解 | #统计大写字母个数#
while True: try: s = input() ss = input() if set(s).issubset(set(ss)): print("true") else: ...
Python3
2022-03-29
0
265
题解 | #统计大写字母个数#
import string while True: try: s = input() n = 0 for i in s: if i in string.ascii_uppercase: n...
Python3
2022-03-29
0
240
题解 | #统计每个月兔子的总数#
def func(n): if n < 3: return 1 else: return func(n-2)+func(n-1) while True: try: n = int(input()) prin...
Python3
2022-03-06
2
260
题解 | #蛇形矩阵#
from itertools import accumulate def func(s): l=list(accumulate(range(1,s+1))) ll =[] lll = [] lll.append(l) for i in range(s): ...
Python3
2022-03-06
0
320
题解 | #单词倒排#
def func(s): l = [i if i.isalpha() else ' ' for i in s] l = ''.join(l).split()[::-1] print(' '.join(l)) s = input() func(s)
Python3
2022-03-01
0
280
题解 | #删除字符串中出现次数最少的字符#
from collections import Counter while True: try: i = input() d = dict(Counter(i)) dd = min(d.values()) l = [k for...
Python3
数组
2022-02-27
0
274
题解 | #统计字符#
while True: try: s = input() isal = 0 issp = 0 isdi = 0 other = 0 for i in s: if i.isa...
Python3
2022-02-26
0
283
题解 | #汽水瓶#
from math import floor def func(n): if n>1: l = list(range(1,floor(n/2+1))) l = l*2 l.append(0) l=sorted(l)[:-1...
Python3
2022-02-26
0
324
首页
上一页
1
2
下一页
末页