在走神的斑马很想奋斗
在走神的斑马很想奋斗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在走神的斑马很想奋斗的博客
全部文章
(共33篇)
题解 | 小红书推荐系统
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
7
题解 | 【模板】排序
n=int(input()) a=list(map(int,input().split())) a.sort() print(*a)
2025-12-05
0
6
题解 | 计算一年中的第几天
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
5
题解 | 小红的正整数构造
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
10
题解 | 数对计数
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
7
题解 | 队列消数
class Solution: def timeRequiredToBuy(self , tickets: List[int], k: int) -> int: # write code here time=0 while tickets...
2025-12-01
0
11
题解 | 队列消数
class Solution: def timeRequiredToBuy(self , tickets: List[int], k: int) -> int: # write code here time=0 n=len(tickets...
2025-12-01
0
10
题解 | 四季
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
10
题解 | 四季
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
8
题解 | 时间转换
seconds=int(input()) a=seconds//3600 b=(seconds%3600)//60 c=(seconds%3600)%60 print(a,b,c)
2025-11-29
0
10
首页
上一页
1
2
3
4
下一页
末页