理智的coder在debug
理智的coder在debug
全部文章
分类
归档
标签
去牛客网
登录
/
注册
理智的coder在debug的博客
全部文章
(共5篇)
题解 | 变幻莫测
from collections import deque import math def min_operations_to_equal(X, Y): # 如果初始时 X 和 Y 就相等,直接返回 0 次操作 if X == Y: return 0 # ...
2025-07-13
0
41
题解 | 小红的字符串修改
s1 = input() s2 = input() l1, l2 = len(s1), len(s2) # 初始化一个很大的数 min_times = 1e6 # 转为ASCII码列表,便于计算 s1_num = [ord(i) for i in s1] s2_num = [ord(i) for i...
2025-07-11
0
100
题解 | 田忌赛马
a = sorted(list(map(int, input().split()))) b = sorted(list(map(int, input().split()))) if b[2] > a[1] and b[1] > a[0]: print("Yes&quo...
2025-07-10
0
69
题解 | 牛牛的绩点
# 定义等级到绩点的映射 grade_map = {"A": 4.0, "B": 3.0, "C": 2.0, "D": 1.0, "F": 0.0} total_credits = 0.0 # ...
2025-07-09
0
55
题解 | 除法与取模运算
n1 = int(input()) n2 = int(input()) print(n1//n2,n1%n2) print(f'{n1/n2:.2f}')
2025-07-09
0
53