柳乐
柳乐
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柳乐的博客
全部文章
(共7篇)
题解 | 平方根
n = int(input()) import math print(int(math.sqrt(n)))
2025-07-08
1
45
题解 | 疫情死亡率
c,d = map(int,input().split()) print(format(d/c*100,'.3f')+'%')
2025-07-08
0
37
题解 | 牛牛学加法
a,b = map(int,input().split()) print(a+b)
2025-07-08
0
41
题解 | 牛牛学说话之-字符串
a = input().strip() # 养成良好习惯 strip()方法用于去除字符串首尾可能存在的空白字符(如换行符、空格等) print(a)
2025-07-08
0
35
题解 | Hello Nowcoder
print("Hello Nowcoder!")
2025-07-08
0
32
题解 | #消除牛牛不喜欢的空格#
import sys import re #使用正则表达式来实现 #原题不需要处理字符串中间空格 #re.sub(pattern, repl, string, count=0, flags=0) sentence = input() #sentence = re.sub(r'\s+',' ',se...
2024-03-28
0
146
题解 | #牛牛的绩点#
grade = {"A": 4.0, "B": 3.0, "C": 2.0, "D": 1.0, "F": 0.0} # list list1 = [] list2 = [] while True: ...
2024-03-14
0
217