HNU_DHG
HNU_DHG
全部文章
分类
归档
标签
去牛客网
登录
/
注册
HNU_DHG的博客
全部文章
(共5篇)
题解 | 括号配对问题
S=list(input()) Stack=[] flag=True def match(left:str,right:str) ->bool: all_lefts="([" all_rights=")]" return all_...
2025-09-30
0
10
题解 | 最厉害的学生
class Student: def __init__(self,s:str,c1:int,c2:int,c3:int) : self.s=s self.c1=c1 self.c2=c2 self.c3=c3 def _...
2025-09-28
0
15
题解 | 凯撒解密
class Solution: def decodeWangzai(self , password: str, n: int) -> str: a=[] string="" for i in password: ...
2025-09-28
0
17
题解 | 一元二次方程
class Solution: def judgeSolutions(self , a: int, b: int, c: int) -> bool: # write code here return True if b**2-4*a*c>=0 el...
2025-09-28
0
17
题解 | 凯撒加密
n=int(input()) s=input() for i in s: num=ord(i)+n%26 if num>122: num=num-26 print(chr(num),sep="",end="")
2025-09-27
0
17