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
Marvelous
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
针对iOS VS. Android开发游戏的优劣——2013-08-25 17
回答: Harry Holmwood,
Marvelous
AQL(欧洲)首席执行官: 我们的看法是,答案不是绝对的。幸运的是,有足够多的优秀的跨平台开发工具,所以兼顾两个平台并不困难。
·
2015-11-11 00:33
Android开发
Marvelous
Designer 3 Enterprise 1.4.0.7014 Win32_64 2CD三维服装设计
Marvelous
Designer 3 Enterprise 1.4.0.7014 Win32_64 2CD三维服装设计Marvelouss Designer 3是韩国CLO Virtual Fashion
·
2015-10-31 15:43
design
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
antonyms
antonyms反义词brochure小册子,小本子furniture家具helicopter直升飞机
marvelous
了不起的,非凡的fabulous难以置信的,传说的,寓言的,极好的urgent紧急的
laiwenhuajava
·
2015-01-26 16:58
english
模式——工程化实践及扩展(1)
代码下载:http://files.cnblogs.com/Aphasia/
Marvelous
.rar
·
2014-12-04 22: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
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
上一页
1
2
下一页
按字母分类:
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
其他