昵称几祇
昵称几祇
全部文章
分类
归档
标签
去牛客网
登录
/
注册
昵称几祇的博客
全部文章
(共19篇)
题解 | 宝石计数
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param jewels string字符串 # @param stones string字符串 # @return int整型 # class Solution: def numJewel...
2026-02-17
0
38
题解 | 快乐数
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param n int整型 # @return bool布尔型 # class Solution: def happynum(self , n: int) -> bool: ...
2026-02-17
0
34
题解 | 机器翻译
M,N=map(int,input().split()) info=map(int,input().split()) queue=[] hit_count=0 miss_count=0 for it in info: if it in queue: hit_count+=1 ...
2026-02-14
0
33
题解 | 队列消数
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param tickets int整型一维数组 # @param k int整型 # @return int整型 # class Solution: def timeRequiredToBu...
2026-02-14
0
34
题解 | 表达式求值
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 返回表达式的值 # @param s string字符串 待计算的表达式 # @return int整型 # import re class Solution: def solve(self , s: ...
2026-02-13
0
36
题解 | 最厉害的学生
class student: def __init__(self, s, c1, c2, c3): self.s = s self.c1 = int(c1) self.c2 = int(c2) self.c3 = int(c3)...
2026-02-11
0
37
题解 | 简写单词
s=input().split() for i in s: print(i[0].upper(),end="")
2026-02-09
0
27
题解 | 扫雷
def conv(a,i,j): res=0 for ii in range(3): for jj in range(3): res+=a[i+ii-1][j+jj-1] return res n,m=map(int,input()...
2026-02-07
0
36
题解 | 上三角矩阵判定
n=int(input()) flag=True for i in range(n): a=list(map(int,input().split())) if i: res=0 for it in range(i): res+=...
2026-02-07
0
35
题解 | 单组_二维数组
n,m=map(int,input().split()) s=0 for i in range(n): a=list(map(int,input().split())) s+=sum(a) print(s)
2026-02-07
0
34
首页
上一页
1
2
下一页
末页