叶花永不相见
叶花永不相见
全部文章
题解
归档
标签
去牛客网
登录
/
注册
叶花永不相见的博客
全部文章
/ 题解
(共50篇)
题解 | #三角形判断#
while 1: try: a,b,c = map(int, input().split()) if a+b>c: if a == b and b == c: print("Equilateral ...
Python3
2022-06-16
0
293
题解 | #计算单位阶跃函数#
while 1: try: t = int(input()) if t > 0: print(1) elif t == 0: print(0.5) else: ...
Python3
2022-06-15
0
253
题解 | #HTTP状态码#
while 1: try: n = int(input()) if n == 200: print("OK") elif n == 202: print("Accepted") e...
Python3
2022-06-15
2
395
题解 | #牛牛的金币#
x,y = map(int, input().split()) x1,y1 = map(int, input().split()) if x == x1 and y1-y == 1: print("u") elif x == x1 and y1-y == -1: print("d")...
Python3
2022-06-15
0
311
题解 | #计算商品打折结算金额#
m = float(input()) if m >= 5000: m *= 0.6 elif m >= 2000: m *= 0.7 elif m >= 500: m *= 0.8 elif m >= 100: m *= 0.9 print("...
Python3
2022-06-14
0
263
题解 | #牛牛的快递#
import math a, b = input().split() a = float(a) p = 20 if a > 1: p = p + math.ceil(a)-1 if b == 'y': p += 5 print(p)
Python3
2022-06-14
0
343
题解 | #网购#
v,m,d,t = map(float, input().split()) if m == 11 and d == 11: v *= 0.7 if t == 1: v -= 50 elif m == 12 and d == 12: v *= 0.8 i...
Python3
2022-06-14
0
295
题解 | #统计数据正负个数#
n = map(int, input().split()) pos = 0 neg = 0 for i in n: if i > 0: pos += 1 else: neg += 1 print("positive:%d" % pos) prin...
Python3
2022-06-14
0
307
题解 | #牛牛的二三七整除#
n = int(input()) list = [2, 3, 7] flag = 0 for i in list: if n % i == 0: print(i, end = " ") flag = 1 if flag == 0: print("n")
Python3
2022-06-14
0
315
题解 | #判断是不是字母#
while 1: try: n = input() if n.isalpha(): print("{} is an alphabet." .format(n)) else: print("{} i...
Python3
2022-06-13
0
249
首页
上一页
1
2
3
4
5
下一页
末页