melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #牛牛的金币#
x,y = map(int,input().split()) x1,y1 = map(int,input().split()) if x == x1: print('u') if y < y1 else print('d') else: print('r') if x &l...
2023-02-09
1
208
题解 | #牛牛的通勤#
d = int(input()) v1 = 1 v2 = 10 t1 = d / v1 t2 = d / v2 + 10 print('w') if t1 < t2 else print('v')
2023-02-08
1
200
题解 | #牛牛的快递#
from math import ceil weight,urgent = input().split() fee = 20 weight = float(weight) if weight > 1: beyond_weight = weight - 1 bey...
2023-02-08
1
244
题解 | #网购#
price,month,day,discount = input().split() price = float(price) if (month == '11') and (day == '11'): price *= 0.7 else: price *= 0.8 if di...
2023-02-08
1
324
题解 | #统计数据正负个数#
map = map(int,input().split()) p = 0 n = 0 for i in map: if i > 0: p += 1 else: n += 1 print(f'positive:{p}\nnegative:{n...
2023-02-08
1
251
题解 | #牛牛的二三七整除#
n = int(input()) lst = [] for i in (2,3,7): if n % i == 0: lst.append(str(i)) print('n') if not lst else print(' '.join(lst))
2023-02-08
1
249
题解 | #判断是不是字母#
while 1: try: n = input() print(f'{n} is an alphabet.') if n.isalpha() else print(f'{n} is not an alphabet.') except: ...
2023-02-07
1
265
题解 | #小乐乐找最大数#
n = map(int,input().split()) print(max(n))
2023-02-07
1
230
题解 | #健康评估#
weight,height = map(float,input().split()) BMI = weight / (height**2) print('Normal') if 18.5 <= BMI <= 23.9 else print('Abnormal')
2023-02-07
1
309
题解 | #四季#
time = input() # year = time[:4] month = int(time[4:]) if 3 <= month <= 5: season = 'spring' elif 6 <= month <= 8: season = 'su...
2023-02-07
1
287
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页