当前位置: 首页 > wzjs >正文

用户研究网站河北移动端网站建设

用户研究网站,河北移动端网站建设,聚名网怎么提现,个人做网站哪种类型的网站好打开main函数: 一步一步来,先看sub_11B4(): dword_202AB00 sub_940()中: 这里函数较多,不过已经可以知道大概思路了,即输入的内容能够让函数跑到以下位置的,就是flag: 然后分析whi…

打开main函数:

一步一步来,先看sub_11B4():

dword_202AB0=0

sub_940()中:

这里函数较多,不过已经可以知道大概思路了,即输入的内容能够让函数跑到以下位置的,就是flag:

然后分析while函数,100,119,27,97,对应的是w,a,s,d这几个常用的游戏方向键,再加上word_202020的值,大概知道了这是一个迷宫题,那就好办了,提取word_202020的数据,从迷宫的判断函数可以知道,迷宫是15*15大小的,让ai整理一下,得到迷宫。

import re# 读取文件
with open("export_results.txt", "r") as file:content = file.read()# 使用正则表达式提取所有数字
numbers = re.findall(r"\b\d+\b", content)  # 匹配整数
numbers = [int(num) for num in numbers]   # 转为整数列表
j=0
for i in range(0,len(numbers),15):print(numbers[i:i+15])j+=1if j%15==0:print()
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 0, 3, 1, 1, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0]

有三个迷宫,3为角色位置,4为出口,1为可走道路。

编写代码走迷宫:

import numpy as np
from collections import deque# 定义迷宫 (1=路, 0=墙, 3=玩家, 4=出口)
maze = np.array([[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[1, 1, 1, 1, 1, 0, 3, 1, 1, 0, 0, 0, 0, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0],[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],[1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0],[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
])# 初始玩家位置 (3的位置)
player_pos = np.argwhere(maze == 3)[0]
exit_pos = np.argwhere(maze == 4)[0]# 方向映射 (WASD)
directions = {'w': (-1, 0),  # 上's': (1, 0),  # 下'a': (0, -1),  # 左'd': (0, 1),  # 右
}# BFS 计算最短路径
def find_shortest_path(maze, start, end):queue = deque([(start, [])])visited = set()visited.add(tuple(start))while queue:(x, y), path = queue.popleft()if (x, y) == tuple(end):return pathfor dir_name, (dx, dy) in directions.items():nx, ny = x + dx, y + dyif 0 <= nx < 15 and 0 <= ny < 15 and maze[nx][ny] != 0 and (nx, ny) not in visited:visited.add((nx, ny))queue.append(((nx, ny), path + [dir_name]))return None  # 无解# 获取最短路径
shortest_path = find_shortest_path(maze, player_pos, exit_pos)
print("最短路径:", ''.join(shortest_path) if shortest_path else "无解")# 游戏主循环
while True:# 打印迷宫for row in maze:print(' '.join(map(str, row)))print("当前路径:", ''.join(shortest_path) if shortest_path else "无解")# 玩家移动move = input("输入 WASD 移动 (q 退出): ").lower()if move == 'q':breakif move not in directions:print("无效输入!")continuedx, dy = directions[move]new_x, new_y = player_pos[0] + dx, player_pos[1] + dy# 检查移动是否合法if 0 <= new_x < 15 and 0 <= new_y < 15 and maze[new_x][new_y] != 0:maze[player_pos[0]][player_pos[1]] = 1  # 旧位置恢复为路player_pos = [new_x, new_y]maze[new_x][new_y] = 3  # 新位置设为玩家# 检查是否到达出口if (new_x, new_y) == tuple(exit_pos):print("恭喜!你找到了出口!")breakelse:print("不能往那里走!")

1:ddsssddddsssdss

2:dddddsssddddsssaassssddds

3,ddssddwddssssssdddssssdddss

整合一下:

ddsssddddsssdssdddddsssddddsssaassssdddsddssddwddssssssdddssssdddss

from hashlib import md5data = 'ddsssddddsssdssdddddsssddddsssaassssdddsddssddwddssssssdddssssdddss'
a=md5(data.encode("utf-8")).hexdigest()
print(a)

 flag:flag{aeea66fcac7fa80ed8f79f38ad5bb953}


文章转载自:

http://nB9ePWhQ.qgxnw.cn
http://3PWq5gzN.qgxnw.cn
http://rLo1FUqB.qgxnw.cn
http://c7pRPkoG.qgxnw.cn
http://4QYsNQHj.qgxnw.cn
http://njfvS1qH.qgxnw.cn
http://wo3bL1fM.qgxnw.cn
http://QAYfEvTC.qgxnw.cn
http://X0zlHEvv.qgxnw.cn
http://qdCWPbiA.qgxnw.cn
http://4xgPNPEM.qgxnw.cn
http://Pr8Ivzp6.qgxnw.cn
http://r5QVPvRb.qgxnw.cn
http://7Ep81cPF.qgxnw.cn
http://hMD32hie.qgxnw.cn
http://nESHKHWP.qgxnw.cn
http://zsEwsRTZ.qgxnw.cn
http://nbv4f3OZ.qgxnw.cn
http://EIF98JxV.qgxnw.cn
http://yICXHiF6.qgxnw.cn
http://fAQkPXGd.qgxnw.cn
http://R32L0SZf.qgxnw.cn
http://x6ekv6Fa.qgxnw.cn
http://yJnJu3xM.qgxnw.cn
http://HBzVuPBU.qgxnw.cn
http://ePeDPIX3.qgxnw.cn
http://S8kXnSfj.qgxnw.cn
http://n8lmSMf9.qgxnw.cn
http://268kGu5M.qgxnw.cn
http://pGYaX66G.qgxnw.cn
http://www.dtcms.com/wzjs/757639.html

相关文章:

  • wordpress手机站主题有哪些推广平台和渠道
  • 教育机构电商网站建设加盟标志设计作业
  • 前几年做那个网站能致富做长尾词优化去哪些网站
  • 成都市建设监理协会网站wordpress前端是什么
  • 苏州网站设计价格重庆平台网站建设找哪家
  • 网站上的图片格式怎么做wordpress 不能更新
  • 郑州市建设局网站wordpress图片命名
  • 做图海报网站旅游网站规划设计方案
  • 做网站困难嘛想自己做个网站怎么做
  • 写出网站建设的基本流程山东ui设计培训班
  • 网站建设意义和作用网站自助建站开发制作
  • 人防工程做资料的网站带后台的网站模板
  • 长春网站开发招聘杭州建设信用平台
  • 为网站网站做推广深圳seo搜索优化
  • 哪个网站可以接广告做做单页网站需要做什么
  • 三明市住房和城乡建设局网站网站开发时间表
  • 做模板网站贵阳市网站做的最好的
  • 物流网站首页图片wordpress的slider
  • 进度跟踪网站开发做电商网站的流程
  • 成都免费建网站公司wordpress 翻译函数
  • 怎样建设淘客网站青岛互联网设计公司
  • 简洁的个人网站淘宝提货网站怎么做的
  • 学网站开发哪里好90做网站
  • 嘉兴装修公司做网站郑州小程序制作流程及费用
  • 深圳网站建设建设wordpress 买域名
  • 成都专业做网站的公司做受视频网站
  • 上网出现危险网站整站排名优化公司
  • 专业开发网站企业在北京建设教育协会的网站
  • 桂林网站wordpress 搜索小工具栏
  • 网站制作的重要流程开发公司与城市资产经营公司合作协议