小宇啊
小宇啊
全部文章
分类
归档
标签
去牛客网
登录
/
注册
小宇啊的博客
全部文章
(共111篇)
题解 | 圆的面积
import math r = float(input()) circle_area = math.pi * r**2 print(f"{circle_area:.3f}")
2025-06-20
0
38
题解 | 中彩票的的概率
numbers = list(map(int,input().split())) probabilities = list(map(float,input().split())) selected_nums = list(map(int,input().split())) prob_dict = ...
2025-06-19
0
29
题解 | 单词统计
words_dict = { 'word':2, 'while':15, 'for':20, 'if':26, 'else':14, 'print':9 } new_word = input().strip() words_dict[new_word...
2025-06-19
0
33
题解 | 记录喜好的字典
language_dict = { "Java":["NiuNiu", "Tony"], "Python":["NiuMei", "NiuNeng"], &...
2025-06-19
0
37
题解 | 拯救消失的空格
import re sentence = input() print(re.sub(r'#',' ',sentence))
2025-06-19
0
38
题解 | 定制显示器
def display_birthday_message(): name = input().strip() age = input().strip() try: n = int(age) if n % 100 in (11,12,13): ...
2025-06-19
0
30
题解 | 牛客网的日常
languages = input().split() for i in range(0,len(languages),5): print(languages[i])
2025-06-18
0
45
题解 | 了解 2023 年全年所有商品的盈利情况
select s.product_id, sum((s.unit_price - p.purchase_price) * s.quantity) as total_profit, round((avg(s.unit_price) - p.purchase_price) / p...
2025-06-13
0
63
题解 | 每个部门薪资排名前两名员工
select t.department, t.employee_name, t.salary from (select department, employee_name, salary, row_num...
2025-06-13
0
42
题解 | 商品销售排名
select t.product_name, t.sales from (select aa.product_name, aa.price * aa.cnt as sales, row_number() over(order b...
2025-06-13
0
42
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页