影挚
影挚
全部文章
分类
题解(166)
归档
标签
去牛客网
登录
/
注册
影挚的博客
全部文章
(共71篇)
题解 | #牛牛的计划#
y, ***p(int, input().split()) y1, m1, d1 = map(int, input().split()) if y1 > y: print('yes') elif y1 == y and m1 > m: print('yes') elif y1 == y ...
Python3
2022-04-19
0
270
题解 | #三角形判断#
while True: try: a, b, c = map(int, input().split()) if a + b > c and abs(a-b) < c: if a == b and a == c and b == c: print('Equilateral triangle...
Python3
2022-04-19
0
225
题解 | #HTTP状态码#
dic = {'200': 'OK', '202': 'Accepted', '400': 'Bad Request', '403': 'Forbidden', '404': 'Not Found', '500': 'Internal Server Error', '502': 'Bad Gatew...
Python3
2022-04-19
0
239
题解 | #牛牛的金币#
a, b = map(int, input().split()) c, d = map(int, input().split()) e, f = c - a, d - b if f == 1: print('u') elif f == -1: print('d') else: if e == 1: ...
Python3
2022-04-19
0
225
题解 | #计算商品打折结算金额#
a = float(input()) if 500 > a and a >= 100: b = a * 0.9 elif 2000 > a and a >= 500: b = a * 0.8 elif 5000 > a and a >= 2000: b = a *...
Python3
2022-04-19
0
198
题解 | #牛牛的快递#
import math a, b = input().split() if b == 'y': c = 5 else: c = 0 if float(a) < 1: c += 20 else: c = c + 20 + math.ceil((float(a) - 1)) print(c)
Python3
2022-04-19
0
291
题解 | #网购#
a, b, c, d = map(float, input().split()) if b == 11: end = a * 0.7 else: end = a * 0.8 if d: end -= 50 if end < 0: end = 0 print('%.2f' % end)
Python3
2022-04-19
0
318
题解 | #统计数据正负个数#
a = list(map(int, input().split())) b = len([x for x in a if x > 0]) c = len([y for y in a if y < 0]) print('positive:%d\nnegative:%d' % (b, c))
Python3
2022-04-19
0
314
题解 | #牛牛的二三七整除#
a = int(input()) if a % 2 == 0: print(2, end=' ') if a % 3 == 0: print(3, end=' ') if a % 7 == 0: print(7, end=' ') if a % 2 != 0 and a % 3 != 0 and a...
Python3
2022-04-19
0
296
题解 | #四季#
month = int(input()[-2:]) if 3 <= month and month <= 5: print('spring') elif 6 <= month and month <= 8: print('summer') elif 9 <= mont...
Python3
2022-04-19
0
284
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页