邱子策
邱子策
全部文章
分类
归档
标签
去牛客网
登录
/
注册
邱子策的博客
全部文章
(共19篇)
题解 | 小苯送礼物
n,k = map(int,input().split()) fans = {} for i in range(1,n+1): x,y = map(int,input().split()) z = x+2*y fans[i] =[x,y,z] sorted_fans = so...
2026-04-11
0
26
题解 | 小苯送礼物
n,k = (map(int,input().split())) fans = {} for i in range(1,n+1): x,y = map(int,input().split()) z = x+2*y fans[i] =[x,y,z] sorted_fans = ...
2026-04-11
0
19
题解 | 大水题
n = int(input()) while n>= 10: total = 0 while n>0: num = n%10 total += num n = n//10 n = total print(n)
2026-04-11
0
15
题解 | 查字典
d = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'} word = input() print(" ".join(d[...
2026-04-10
0
23
题解 | 首都
cities_dict={'Beijing': 'China','Moscow':'Russia','Paris': 'France'} for k,v in cities_dict.items(): print(f'{k} is the capital of {v}!')
2026-04-08
0
22
题解 | 程序员节
users_list = [ 'Niuniu' ,'Niumei' , 'Niu Ke Le' ] for i in range(3): print( f'Hi, {users_list[i]}! Welcome to Nowcoder!') print( "Happy Progr...
2026-04-08
0
21
题解 | 牛牛的矩阵相加
n = int(input()) list1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] list2 = [[0]*3 for _ in range(3)] for i in range(3): for j in range(3): list2[i][...
2026-04-08
0
21
题解 | 公式计算器
x,y,z,k = map(int,input().split()) print((x+y)*(z-k))
2026-04-08
0
23
题解 | 密码游戏
num1 = list(map(int,input())) result=[] for i in range(4): num2 = (num1[i]+3)%9 result.append(num2) temp = result[0] result[0] = result[2] res...
2026-04-07
1
27
题解 | 删除好友
name = list(input().split()) badfriend = input() name.remove(badfriend) print(name)
2026-04-07
0
23
首页
上一页
1
2
下一页
末页