牛客155969019号
牛客155969019号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客155969019号的博客
全部文章
/ 题解
(共28篇)
题解 | #表达式求值#
while True: try: print(int(eval(input()))) except: break
Python3
2021-10-17
130
8606
题解 | #杨辉三角的变形#
while True: try: n = int(input()) if n > 2 and n % 2 == 0: if n % 4 == 0: print(3) else...
Python3
2021-10-17
5
460
题解 | #输出单向链表中倒数第k个结点#
while True: try: n = int(input()) s = list(map(int,input().split())) k = int(input()) if k == 0: print...
Python3
2021-10-16
0
554
题解 | #四则运算#
while True: try: s=input() s=s.replace('{', '(') s=s.replace("}",")") s=s.replace("[","(") s=s.replace("]"...
Python3
2021-10-16
45
3784
题解 | #从单向链表中删除指定值的节点#
while True: try: num = list(map(int,input().split())) n = len(num) new = [] for i in range(2,n-1,2): ...
Python3
2021-10-16
11
1514
题解 | #截取字符串#
while True: try: str = input() n = int(input()) print(str[:n]) except: break
Python3
2021-10-16
0
373
题解 | #名字的漂亮度#
while True: try: n = int(input()) names = [] for i in range(n): names.append(input().lower()) ...
Python3
2021-10-16
0
387
题解 | #学英语#
num1 = ['zero','one','two','three','four','five','six', 'seven','eight','nine','ten','eleven','twelve', 'thirteen','fourteen','fifteen',...
Python3
2021-10-16
43
3214
题解 | #称砝码#
while True: try: n = int(input()) m = list(map(int,input().split())) x = list(map(int,input().split())) except: ...
Python3
2021-10-16
172
8597
题解 | #统计字符#
big = [chr(i) for i in range(65,91)]#所有大写字母 small = [chr(i) for i in range(97,123)]#所有小写字母 num = [chr(i) for i in range(48,58)]#所有数字 while True: ...
Python3
2021-10-16
0
378
首页
上一页
1
2
3
下一页
末页