E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Mazes
re学习笔记(73)2021美团CTF-Re-100
mazes
刚开始想对伪代码进行处理,但是需要修改的太多;比较菜不太会处理。之后发现每个函数的栈空间都是一样的。就拜托pwn手来写gdb脚本来提取一下数据。为了方便一下子取出来。使用idapython将程序退出的地方进行了patch,这样就算输入错误程序还是会向下运行,方便提取数据。首先是idapython脚本patch退出的点(idapython临时学了一下,写的可能有些笨)importidc,idauti
Forgo7ten
·
2021-05-28 09:54
ctf小白成长ing
#
reverse
python
linux
gdb
reverse
ctf
Marvelous
Mazes
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=386这道题目题意没看清,以为是把所有的数据一次性输入,然后一次性输出,搞得我郁闷死了。。。。其实是一组输入,一组输出。刚学习fgets()函数,所以是用字符串写的,代码不是很精简,后来在网上看到用getcha
无泪之痕
·
2020-09-14 23:13
c/c++
字符串
【dfs】B_CodeForce 377_A
mazes
(连通块问题)
一、题目描述Pavel喜欢网格迷宫。一个网格迷宫是一个n × m的长方形迷宫,其中每个单元格要么是空白的,要么是墙体。您可以从一个单元格走到另一个单元格,只要两个单元格均是空白的,且拥有一条公共的边。Pavel绘制了一个网格迷宫,包含的全部空白单元格形成了一个连通区域。换言之,您可以从任何一个空白的单元格,走到其它任意的空白单元格。Pavel的迷宫如果墙体太少,他就不喜欢这个迷宫。他希望将k个空白
wdt_
·
2020-08-24 09:21
●
搜索
Pavel loves grid
mazes
(CodeForce 377A)
题目如下:DescriptionPavellovesgridmazes.Agridmazeisann × mrectanglemazewhereeachcelliseitherempty,orisawall.Youcangofromonecelltoanotheronlyifbothcellsareemptyandhaveacommonside.Paveldrewagridmazewithalle
happy丶zhang
·
2020-08-24 09:16
DFS
TOJ 2017: N-Credible
Mazes
2017:N-CredibleMazesTimeLimit(Common/Java):1000MS/10000MSMemoryLimit:65536KByteTotalSubmit:6Accepted:0DescriptionAnn-tersectionisdefinedasalocationinn-dimensionalspace,nbeingapositiveinteger,havingall
weixin_34163553
·
2020-08-09 14:58
CodeForce 377 A
mazes
(dfs+连通性问题)
Pavel喜欢网格迷宫。一个网格迷宫是一个n × m的长方形迷宫,其中每个单元格要么是空白的,要么是墙体。您可以从一个单元格走到另一个单元格,只要两个单元格均是空白的,且拥有一条公共的边。Pavel绘制了一个网格迷宫,包含的全部空白单元格形成了一个连通区域。换言之,您可以从任何一个空白的单元格,走到其它任意的空白单元格。Pavel的迷宫如果墙体太少,他就不喜欢这个迷宫。他希望将k个空白的单元格转换
qdu_lkc
·
2020-01-28 20:00
房间和迷宫:一个地牢生成算法
转自:https://indienova.com/indie-game-development/rooms-and-
mazes
-a-procedural-dungeon-generator/文章来源微博上的
囧
·
2018-05-07 14:35
算法
UVA 445 - Marvelous
Mazes
Marvelous
Mazes
Your mission, if you decide to accept it, is to create a maze drawing program
·
2015-11-13 14:14
uva
UVA 445(Marvelous
Mazes
)
这道题做的很郁闷,用gets始终A不了,然后用了fegets就A了,难道是题意理解不对? #include<stdio.h>#include<string.h>#include<stdlib.h>char ch[150];int main(){ int k = 0; while( fgets( ch, 150, stdin) ) {
·
2015-11-13 01:16
uva
445 - Marvelous
Mazes
#include<stdio.h> #include<string.h> #include<ctype.h> char maze[140]; int main() { int i,l,repeat; while(gets(maze)) { l=strlen(maze);
·
2015-11-11 06:47
EL
UVA 705 Slash Maze
nbsp; By filling a rectangle with slashes (/) and backslashes ( ), you can generate nice little
mazes
·
2015-11-01 09:01
uva
A* search算法解迷宫
这是一个使用A* search算法解迷宫的问题,细节请看:http://www.laurentluce.com/posts/solving-
mazes
-using-python-simple-recursivity-and-a-search
·
2015-10-21 10:24
search
UVA 445-Marvelous
Mazes
#include #include intmain() { charch; inti,count=0; while((ch=getchar())!=EOF){ if(isdigit(ch)){ count+=ch-'0'; continue; }elseif(ch=='!'||ch=='\n') putchar('\n'); else{ if(ch=='b') ch=''; for(i=0;i<
Griffin_0
·
2015-08-19 17:00
UVA 445 Marvelous
Mazes
MarvelousMazesYourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthe
Houheshuai
·
2014-08-06 21:00
UVA 445 Marvelous
Mazes
MarvelousMazesYourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthe
Houheshuai
·
2014-08-06 21:00
UVA - 445 Marvelous
Mazes
MarvelousMazes Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.AmazewillconsistofthealphabeticcharactersA-Z,*(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthem
HelloWorld10086
·
2014-07-30 18:00
uva
Marvelous
Mazes
UVA 445 Marvelous
Mazes
#include #include intmain(){ charstr[300]; while(gets(str)){ intlen=strlen(str),sum=0; for(inti=0;i='0'&&str[i]<='9') sum+=str[i]-'0'; elseif(str[i]=='!') printf("\n"); else while(sum){ printf("%c",s
kl28978113
·
2014-07-28 20:00
UVa 445 - Marvelous
Mazes
13523540445MarvelousMazesAcceptedANSIC0.0062014-04-2018:27:28【问题描述】画“迷宫”【解决过程】特别要注意:如果字符前有多个数字(例如123),要输出数字和(也就是6个而不是123)个字符,如果没有注意这一点会OLE。代码如下:#include#includeintmain(){charc;intnum=0,i;while((c=getc
cksteven
·
2014-04-20 18:16
OI
2013秋13级预备队集训练习1 H - Marvelous
Mazes
MarvelousMazes Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.AmazewillconsistofthealphabeticcharactersA-Z,*(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthem
u013015642
·
2013-12-09 09:00
Marvelous
Mazes
Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, *(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthemazesfromtheinp
u013013910
·
2013-12-04 20:00
编程
C语言
UVa 445 Marvelous
Mazes
(water ver.)
445-MarvelousMazesTimelimit:3.000secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=386Yourmission,ifyoudecidetoacceptit,istocreateamazed
synapse7
·
2013-09-13 21:00
C++
ACM
uva
UVALive 5796 Hedge
Mazes
解题报告
比赛总结题目题意:一个无向图,每次查询两个点s和t,判断是否s到t间存在且只存在一条简单路径。题解:若只存在一条简单路径,那么删掉路径上任意一条边,s和t都变得不可达,也就是说路径上的边都是桥边。那么如果删掉所有非桥边,符合条件的点对就必须在同一个连通分量里。//Time:126ms //Memory:1775B #include #include #include #include #inclu
u010638776
·
2013-09-01 20:00
UVA445―― Marvelous
Mazes
Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces. InputandOutputYourprogramwillgettheinformationforthemazesfromthei
bingsanchun
·
2013-08-10 00:00
java
开发技术
UVA445—— Marvelous
Mazes
Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.AmazewillconsistofthealphabeticcharactersA-Z,*(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthemazesfromtheinput
bingsanchun
·
2013-08-10 00:00
java
开发技术
UVA:445 - Marvelous
Mazes
Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthemazesfromthein
wlx65003
·
2013-07-13 20:00
UVA 445 - Marvelous
Mazes
MarvelousMazesYourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforth
LYHVOYAGE
·
2013-07-11 12:00
C.445 - Marvelous
Mazes
此题最重要的是怎样计算打印个数. if(str[i]>='0'&&str[i]2X3b1Xintmain() { charstr[133]; while(gets(str)!=NULL) { intlen=strlen(str); intsum=0; for(inti=0;i='0'&&str[i]='A'&&str[i]<='Z') {
PandaCub
·
2013-06-17 00:00
uva
445 - Marvelous
Mazes
题意:根据输入画出迷宫.输入的字符串中包含字符和数字,其中数字表示其后紧跟着的字符的重复次数(若连续出现两个以上的数字,则把这些数字相加起来作为重复次数),b表示空格,!表示换行.不同的输入使用空行进行分隔,输出的迷宫也需要使用空行进行分隔.思路:逐个字符分析,若是数字,则相加;否则,进行输出.要点:1.使用atoi将字符转化为整数,或者使用(int)('c'-'0');2.从此题开始引入#ifn
sailtseng
·
2013-06-15 14:00
uva
445
Mazes
Marvelous
UVA 445 - Marvelous
Mazes
Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic charactersA-Z,*(asterisk), and spaces. Input and Output Your progr
hellobin
·
2013-02-27 15:00
uva
UVaOJ 445 - Marvelous
Mazes
AOAPCI: BeginningAlgorithmContests(RujiaLiu) ::Volume0.GettingStartedDescription给你一段有意义的字符串。按照他的意思,输出翻译后的图像。TypeWaterAnalysis读取字符,如果判定为数字就声明一个整型来储存,读到字母就根据整型的值来输出对应个数的字母。读到'!'和'\n'统统换行即可,连case间的空行都不需要
Ra_WinDing
·
2012-09-08 17:00
uva445 - Marvelous
Mazes
Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.AmazewillconsistofthealphabeticcharactersA-Z,*(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthemazesfromtheinput
Frankiller
·
2012-06-03 15:00
c
File
input
character
each
Numbers
UVA-445-Marvelous
Mazes
这道题目太水来,没得说,注意好判断字符是哪个就好了。题意根本也不用理解,例子说明一切问题。#include #include intmain() { intsum,i,j,n; charstr[10000]; while(gets(str)!=NULL) { n=strlen(str); sum=0; for(i=0;i='0'&&str[i]<='9') { sum+=str[i]-'0'; }
rowanhaoa
·
2012-05-19 17:00
445 - Marvelous
Mazes
MarvelousMazes Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.AmazewillconsistofthealphabeticcharactersA-Z,*(asterisk),andspaces.InputandOutputYourprogramwillgettheinformationforthem
zhuyi2654715
·
2012-05-14 22:00
Uva 445 Marvelous
Mazes
#include #include #include intmain() { intcount=0; charch; while(scanf("%c",&ch)!=EOF) { if(isdigit(ch)) count+=ch-'0'; elseif((isalpha(ch)&&ch!='b')||ch=='*') { while(count--) printf("%c",ch); count=
ssun125
·
2012-03-29 16:00
c
uva445 Marvelous
Mazes
MarvelousMazes Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationfort
x954818696
·
2011-11-28 01:00
c
File
input
character
each
Numbers
uva445 Marvelous
Mazes
MarvelousMazes Yourmission,ifyoudecidetoacceptit,istocreateamazedrawingprogram.Amazewillconsistofthealphabeticcharacters A-Z, * (asterisk),andspaces.InputandOutputYourprogramwillgettheinformationfort
·
2011-11-28 01:00
uva
UVa 445 - Marvelous
Mazes
终于有一道一次AC的题了。。 唉,上一道题做的崩溃 #include #include intmain() { charc; intsum=0; while((c=getchar())!=EOF) { if(isdigit(c)) { sum+=c-'0'; } elseif(isalpha(c)||c=='*') { if(c=='b') while(sum--) printf(""); e
gneveek
·
2011-09-27 19:00
c
UVa 445 Marvelous
Mazes
UVa445MarvelousMazesHereismycode:#include#include#includeusing namespace std;int len;string s;int main(){ /* freopen("data.in","r",stdin); freopen("data.out","w",stdout); //*/ while(get
心如止水
·
2011-01-23 21:00
[转]MicroMouse maze examples
[转]MicroMousemazeexamples原文:http://micromouseonline.com/book/micromouse-book/
mazes
-and-maze-solving/examplesHereareacoupleofexamplemazes.Thesecomefromoldcompetitionsandwillgiveyousomeideaofwhatisgoing
CrazyNerd 's Blog
·
2010-09-02 01:00
上一页
1
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他