在走神的斑马很想奋斗
在走神的斑马很想奋斗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在走神的斑马很想奋斗的博客
全部文章
(共34篇)
题解 | 小红的优惠券
n,m=map(int,input().split()) s=[] for j in range(m): ab=tuple(map(int,input().split())) if n>=ab[0]: s.append(ab) if not s: pri...
2025-12-16
0
16
题解 | 小红书推荐系统
from collections import Counter a=list(input().split()) counts= Counter(a) scount=sorted(counts.items(),key=lambda x:(-x[1],x[0])) for i in range(len(...
2025-12-08
1
15
题解 | 【模板】排序
n=int(input()) a=list(map(int,input().split())) a.sort() print(*a)
2025-12-05
0
16
题解 | 计算一年中的第几天
import sys def dijitian(y,m,d): tg=[0,31,28,31,30,31,30,31,31,30,31,30,31,0] if (y%4==0 and y%100!=0) or y%400==0: tg[2]=29 ti...
2025-12-05
0
11
题解 | 小红的正整数构造
l,r,x=map(int,input().split()) s=[i for i in range(l,r+1)] found=False for j in s: if int(j)%x==0: print(j) found=True bre...
2025-12-03
0
20
题解 | 数对计数
from collections import Counter def main(): n, c = map(int, input().split()) nums = list(map(int, input().split())) counts = Counter(nums...
2025-12-01
0
22
题解 | 队列消数
class Solution: def timeRequiredToBuy(self , tickets: List[int], k: int) -> int: # write code here time=0 while tickets...
2025-12-01
1
18
题解 | 队列消数
class Solution: def timeRequiredToBuy(self , tickets: List[int], k: int) -> int: # write code here time=0 n=len(tickets...
2025-12-01
0
21
题解 | 四季
s=input() a=[int(c) for c in s] if a[4]==0: if a[5]<=2: print('winter') if a[5]>=3 and a[5]<=5: print('spring') i...
2025-12-01
0
17
题解 | 四季
s=input() a=[int(c) for c in s] if a[4]==0: if a[5]<=2: print('winter') if a[5]>=3 and a[5]<=5: print('spring') i...
2025-11-29
0
14
首页
上一页
1
2
3
4
下一页
末页