哈哈~柳暗花明
哈哈~柳暗花明
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Renaissancer的博客
全部文章
/ 题解
(共75篇)
带空格三角形_python3
while True: try: n = int(input()) for i in range(n): print(' '*(n-1-i) + '* '*(i+1)) except EOFError: bre...
2020-06-29
0
480
直角三角形_python3
while True: try: n = int(input()) for i in range(n): print('* '*(i+1)) except EOFError: break
2020-06-29
0
438
简单计算器_python3
lf = '+-*/' while True: try: str = input() for i in range(4): if str.find(lf[i]) > 0: a, b = map(fl...
2020-06-29
1
699
闰月天数_python3
def isLeapYear(year): return True if ((year % 400 == 0) or (year % 4 == 0 and year % 100 != 0)) else False md = [31,28,31,30,31,30,31,31,30,31,30...
2020-06-29
2
681
计算一元二次方程_python3
import math def isZero(f): temp = 0.0000001 return abs(f - 0) < temp while True: try: a, b, c = map(float, input().split()) ...
2020-06-29
0
731
衡量人胖瘦程度_python3
def getBMI(weight, height): BMI = weight/((height/100)**2) if BMI < 18.5: print('Underweight') elif BMI >= 18.5 and BMI <...
2020-05-28
0
570
三角形判断_python3
这个条件很容易忽略:ll[0] == ll [1] or ll[1] == ll[2] while True: try: ll = list(map(int, input().split())) ll.sort() if ll[0] + ll ...
2020-05-06
0
592
阶跃函数_python3
while True: try: n = int(input()) print('1' if n > 0 else '0.5' if n == 0 else '0') except EOFError: break
2020-05-06
0
540
判断大小_python3
while True: try: a, b = map(int, input().split()) ch = '>' if a > b else '<' if a < b else '=' print('{}{}{}'....
2020-05-06
1
603
大小写转换_python3
while True: try: c = input() print(str.upper(c) if c >= 'a' else str.lower(c)) except EOFError: break
2020-05-06
5
814
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页