我是芭芭拉的狗
我是芭芭拉的狗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
我是芭芭拉的狗的博客
全部文章
(共44篇)
题解 | 计算单位阶跃函数
while True: try: n=float(input()) if n==0: print('0.5') elif n>0: print('1') else: ...
2025-11-26
0
12
题解 | HTTP状态码
dic = {'200':'OK','202':'Accepted','400':'Bad Request','403':'Forbidden', '404':'Not Found','500':'Internal Server Error','502':'Bad Gateway'} ...
2025-11-26
0
10
题解 | 牛牛的金币
a,b=map(int,input().split()) c,d=map(int,input().split()) if a > c: print('l') elif a < c: print('r') else: if b > d: pri...
2025-11-26
1
12
题解 | 牛牛的通勤
n=int(input()) if n > (100/9): print('v') else: print('w')
2025-11-26
1
11
题解 | 计算商品打折结算金额
n=float(input()) if n >= 5000: n=n*0.6 elif n >= 2000: n=n*0.7 elif n >= 500: n=n*0.8 elif n>=100: n=n*0.9 else: n=n p...
2025-11-26
1
9
题解 | 牛牛的快递
a,b=input().split() a=float(a) j=0 if a % 1 !=0: a=a//1+1 if a <= 1: j=20 else: j=20+(a-1)*1 if b=='y': j=j+5 j=int(j) print(j)
2025-11-26
1
10
题解 | 网购
j,m,d,y=map(float,input().split()) if m==11: if d==11: if y==1: j=j*0.7-50 else: j=j*0.7 else: if m==1...
2025-11-26
1
8
题解 | 统计数据正负个数
n = list(map(int,input().split())) z=0 f=0 for i in n: if i > 0: z=z+1 elif i < 0: f=f+1 else: break print(...
2025-11-26
1
10
题解 | 牛牛的二三七整除
n=int(input()) if n % 70 == 0: print('2 5 7') else: if n % 6==0: print('2 3') elif n % 14==0: print('2 7') elif n % 21...
2025-11-26
1
11
题解 | 小乐乐找最大数
a,b,c,d = map(int,input().split()) print(max(a,b,c,d))
2025-11-26
1
9
首页
上一页
1
2
3
4
5
下一页
末页