ill__
ill__
全部文章
题解
归档
标签
去牛客网
登录
/
注册
ill__的博客
全部文章
/ 题解
(共16篇)
题解 | #小红的三倍数#
#这题太离谱了,不能提前终止进程,否则会判错 n,x = map(int ,input().split()) cnt = 0 move = list(map(int,input().split())) for ...
2025-10-07
1
6
题解 | #小红的字符串生成#
x,y =input().split() if x == y: s = [x,x+y] else: s = [x,y,x+y...
2025-10-07
1
5
题解 | #小红的字符串#
s = input() cnt = 0 n = len(s) for i in range(n//2): d = abs(ord(s[i])&...
2025-10-07
0
5
题解 | #美味饼干#
T = int(input()) for _ in range(T): cnt = 0 a = list(map(...
2025-10-07
1
6
题解 | #小红的最大价值#
hhh我灵机一动想出了炒鸡简单的代码[羞涩] 值得细品 n,k = map(int,input().split()) a = list(map(int,input().split())) a.sort() if a[n-1]-a[0]&nb...
2025-10-07
1
7
题解 | #博丽神社的巫女#
n,x = map(int,input().split()) a = list(map(int,input().split())) cnt = 0 insert_coins =0 for i in&...
2025-10-06
1
7
题解 | #小念吹气球#
n = int(input()) s = input().strip() balloons = 0 solved = set() for char in s: &nb...
2025-10-06
1
8
题解 | #冒险猫猫参上!!#
T = int(input()) for _ in range(T): n = int(input()) res =&nbs...
2025-10-06
1
7
题解 | #小苯的数字切割#
T = int(input()) for _ in range(T): s = input() max_sum = ...
2025-10-06
1
8
题解 | #食堂大作战1.0#
将 a数组排序。 如果排序后是严格递增的,那么按这个顺序去拍就可以。 如果有重复值,那么两个相同人数的窗口,你拍完第一个后,第二个在你排它的时候已经关闭(因为人数相同,拍完第一个时总时间 = 该人数,第二个窗口人数已经减到 0)。 ...
2025-10-06
1
7
首页
上一页
1
2
下一页
末页