姓牛名毛
姓牛名毛
全部文章
分类
归档
标签
去牛客网
登录
/
注册
姓牛名毛的博客
全部文章
(共12篇)
题解 | 统计每个学校各难度的用户平均刷题数
select university,difficult_level,round(count(question_id)/count(distinct device_id),4) as avg_answer_cnt from ( select q.device_id, ...
2025-10-19
0
54
题解 | 年轻人不讲5的
import sys str1 = input() s = str1.replace('5','*') print(s)
2025-10-17
0
54
题解 | 牛牛数数
import sys num = int(input()) for i in range(1,num+1): if i%4!=0 : if str(i).find('4')<0: print(i)
2025-10-17
0
55
题解 | #浙大不同难度题目的正确率#
select difficult_level, sum( case when result = 'right' then 1 else 0 end ) / count(1) as correct_...
2024-03-10
0
325
题解 | #统计每个学校的答过题的用户的平均答题数#
select t2.university, count(t1.question_id) / count(distinct t1.device_id) avg_answer_cnt from question_practice_detail t1 join user_p...
2024-03-08
0
247
题解 | #查看学校名称中含北京的用户#
select device_id, age, university from user_profile where regexp_like(university,'北京');
2024-03-08
0
232
题解 | #进制转换#
j = input() i = int(j,16) if i >=1 and i <= ((2**31)-1): print(i)
2023-07-03
0
299
题解 | #牛牛的抽奖游戏#
import sys strs = [] strs_1 = [] strs_2 = [] for line in sys.stdin: temp = line.split() strs.extend(temp) for i in strs: if i == "3": ...
2023-05-21
0
255
题解 | #牛客的伙伴们#
a = ['NiuMei', 'NiuKele', 'NiuNeng'] b = [3, 4, 5, 8] c = list(zip(a,b)) print(c)
2023-05-21
1
259
题解 | #无法更改的信息#
one = tuple(map(str,input().split())) two = tuple(map(str,input().split())) print(one) print(two) three = [] three.extend(list(one[:3])) three.extend(...
2023-05-21
1
220
首页
上一页
1
2
下一页
末页