元元是只狗猫
元元是只狗猫
全部文章
分类
归档
标签
去牛客网
登录
/
注册
元元是只狗猫的博客
全部文章
(共4篇)
题解 | 宠物猫繁育族谱追溯与遗传病风险评估
with recursive descendant_tree as( select child_cat_id as descendant_id ,1 as generation ,health_score from breeding_records where parent_cat_id = (s...
2026-03-04
0
4
题解 | 目标月份的品类销售简报
SELECT category, orders_cnt, buyers_cnt, items_qty, revenue, -- ✅ 处理除以0:如果orders_cnt=0,返回0 IFNULL(ROUND(revenue/orders_cnt...
2026-03-03
0
8
题解 | 统计复旦用户8月练题情况
select u.device_id ,u.university ,ifnull(count(q.question_id),0) question_cnt ,ifnull(sum(case when q.result='wrong' then 0 else 1 end),0) right_quest...
2026-03-02
0
6
题解 | 数字的二进制表示
import re # 导入正则表达式模块,用于处理字符串匹配 # 判断输入的是否是数字 input_str = input() # 获取用户输入的字符串 # 使用正则表达式查找字符串中的数字字符,r'[0-9]'表示匹配任意数字 result_number = re.findall(r&qu...
2025-06-23
1
64