ill__
ill__
全部文章
题解
归档
标签
去牛客网
登录
/
注册
ill__的博客
全部文章
/ 题解
(共19篇)
题解 | #冒险猫猫参上!!#
T = int(input()) for _ in range(T): n = int(input()) res =&nbs...
2025-10-06
1
21
题解 | #小苯的数字切割#
T = int(input()) for _ in range(T): s = input() max_sum = ...
2025-10-06
1
28
题解 | #食堂大作战1.0#
将 a数组排序。 如果排序后是严格递增的,那么按这个顺序去拍就可以。 如果有重复值,那么两个相同人数的窗口,你拍完第一个后,第二个在你排它的时候已经关闭(因为人数相同,拍完第一个时总时间 = 该人数,第二个窗口人数已经减到 0)。 ...
2025-10-06
1
26
题解 | #构造A+B#
n,k =map(int,input().split()) #共有n-1对,如果n-1比k大就满足题意 if n-1>=k:print('YES') else:print('NO')
2025-10-06
1
28
题解 | #小紫的劣势博弈#
n = int(input()) a = list(map(int,input().split())) a.sort() cnt=0 for i in range(n): if&nb...
2025-10-04
1
33
题解 | #小红抽卡#
n, k, x = map(int, input().split()) a = list(map(int, input().split())) # 前x张牌 front = a[:x] b...
2025-10-04
1
28
题解 | #Kato_Shoko#
from collections import Counter target = "Kato_Shoko" n = int(input()) s = input().strip() target_counter = Counter(target) s_counter = Counter(s) for...
2025-10-03
1
21
题解 | #小红的数组选数#
from collections import Counter target = "Kato_Shoko" n = int(input()) s = input().strip() target_counter = Counter(target) s_counter = Counter(s) for...
2025-10-03
1
24
题解 | #拼数#
自我思考:比较每一个整数的首位,大的放前面,若第一个数相等则比较第二位 but借鉴 #include #include //#include<bits/stdc++.h> using namespace std; bool cmp(string a,string b){ return a...
2025-01-05
1
60
首页
上一页
1
2
下一页
末页