CARLJOSEPHLEE
CARLJOSEPHLEE
全部文章
分类
题解(26)
归档
标签
去牛客网
登录
/
注册
CARLJOSEPHLEE的博客
全部文章
(共216篇)
题解 | 小乐乐计算函数
a,b,c = map(int,input().split()) ans = max(a+b,b,c)/(max(a,b+c,c)+max(a,b,b+c)) print(f"{ans:.2f}")
2025-08-02
1
39
题解 | 牛牛逆序输出
print(input()[::-1])
2025-08-02
1
25
题解 | 牛牛的排列数
牛客什么时候能把Python3和pypy3的版本更新一下,太旧了 from math import perm n,m = map(int,input().split()) print(perm(n,m))
2025-08-02
1
27
题解 | 牛牛的Hermite多项式
解包省代码量 def h(n,x): if n == 0: return 1 if n == 1: return 2*n return 2*x*h(n-1,x)-2*(n-1)*h(n-2,x) print(h(*map(int,input()...
2025-08-02
1
30
题解 | 牛牛的digit
x,i = input().split() print(x[len(x)-int(i):len(x)])
2025-08-02
1
25
题解 | 牛牛的Ackmann
from sys import setrecursionlimit setrecursionlimit(1000000) def ackmann(m,n): if m == 0: return n+1 if m>0 and n == 0: ret...
2025-08-02
1
35
题解 | 函数实现计算一个数的阶乘
这题只能用C++写,害得我复习了一下C++语法@烤点老白薯(637174235) #include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin...
2025-08-02
1
43
题解 | 开学?
a,b = map(int,input().split()) temp = (a+b)%7 print(temp if temp != 0 else 7)
2025-08-02
1
24
题解 | 浮点数的个位数字
a = float(input()) print(int(a)%10)
2025-08-02
1
24
题解 | 牛牛的空格分隔
a = str(input()) b = int(input()) c = float(input()) c = f"{c:.6f}" print(" ".join(map(str,[a,b,c])))
2025-08-02
1
25
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页