叶花永不相见
叶花永不相见
全部文章
题解
归档
标签
去牛客网
登录
/
注册
叶花永不相见的博客
全部文章
/ 题解
(共50篇)
题解 | #小乐乐定闹钟#
h, m, k = map(int, input().replace(":", " ").split(" ")) h = (h + (m+k) // 60) % 24 m = (m+k) % 60 print("%02d:%02d" % (h, m))
Python3
2022-04-19
0
291
题解 | #牛牛的水杯#
h, r = map(int, input().split(" ")) v = 3.14 * h * r * r if 10000 % v == 0: print(10000 / v) else: print(int(10000 // v) + 1 )
Python3
2022-04-16
0
268
题解 | #KiKi和酸奶#
n, h, m = map(int, input().split()) while h: if m <= h: n -= 1 break else: m -= h n -= 1 print(n)
Python3
2022-04-16
0
294
题解 | #计算三角形的周长和面积#
import math a, b, c = map(int, input().split(" ")) circumference = a+b+c p = circumference / 2 area = math.sqrt(p*(p-a)*(p-b)*(p-c)) print("circumfere...
Python3
2022-04-16
0
316
题解 | #统计成绩#
n = int(input()) score = list(map(float, input().split(" "))) a = max(score) b = min(score) c = sum(score)/n print("%.2f %.2f %.2f" % (a, b, c))
Python3
2022-04-16
0
394
题解 | #时间转换#
a = int(input()) h = a // 3600; m = a % 3600// 60; s = a % 3600 % 60; print("%d %d %d" % (h, m, s))
Python3
2022-04-11
0
303
题解 | #大小写转换#
while 1: try: a = input() print(a.lower()) except: break
Python3
2022-04-03
0
347
题解 | #按照格式输入并交换输出#
list=input().split(',') a, b=list[0].split('='),list[1].split('=') print('a=%s,b=%s' % (b[1], a[1]))
Python3
2022-04-02
0
271
题解 | #出生日期输入输出#
a=input() year=a[0:4] month=a[4:6] date=a[6:] print(f'year={year}') print(f'month={month}') print(f'date={date}')
Python3
2022-03-29
0
277
题解 | #学生基本信息输入输出#
a, b=input().split(';') x, y, z=[float(i)+0.0001 for i in b.split(',')] print('The each subject score of No. {} is {:.2f}, {:.2f}, {:.2f}.'.format(a,x...
Python3
2022-03-29
0
312
首页
上一页
1
2
3
4
5
下一页
末页