Oworl
Oworl
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Oworl的博客
全部文章
(共5篇)
题解 | A-B≠C
#这题涉及到"精确计算" #浮点数在计算机中是一个近似值,如80.845在计算机中可能是80.84499999999999,所以在计算时会产生误差 #因此,我们需要导入一些模块来实现精确计算 from decimal import Decimal,getcontext getc...
2025-12-13
0
6
题解 | Letter Song ~ 致十年后的我们
pastyear=input().split("-") Y=int(pastyear[0])+10 pastyear[0]=str(Y) print("-".join(pastyear))
2025-12-13
1
5
题解 | 排序危机
n=input() s=input() Strls=[] strls=[] intls=[] for i in s: if type(i)==str and i.isupper(): Strls.append(i) elif type(i)==str and i.is...
2025-12-13
1
5
题解 | 小红走矩阵
import math n,m=map(int,input().split(" ")) print(math.comb(m+n-2,n-1)%998244353)
2025-12-02
0
6
题解 | 浮点除法
a,b=map(int,input().split(" ")) print("{:.3f}".format(float(a/b)))
2025-11-27
0
8