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
circumgyrate
C++--ACM之杭电OJ--2137
circumgyrate
the string
首先旋转可为负!!!!!!!其次用scanf输入printf输出!!!!#include#include#includeusingnamespacestd;intmain(){intn;chars[90];inti;intj;intlen;while(~scanf("%s%d",&s,&n)){len=strlen(s);n=n%8;if(n==0){for(i=0;i=0;i--){for(j=
蜕_变
·
2018-09-07 21:01
ACM
C++
C++--ACM
HDU 2037
circumgyrate
the string(字符串翻转)
circumgyratethestringTimeLimit:10000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):5305 AcceptedSubmission(s):1274ProblemDescription Giveyouastring,justcircumgyrat
liangzhaoyang1
·
2016-05-17 22:00
str
HDU
the
字符串翻转
2037
circumgyrate
HDOJ(HDU) 2137
circumgyrate
the string(此题用Java-AC不过!坑)
此题如果有用JavaACDSee,请评论,谢谢了。ProblemDescriptionGiveyouastring,justcircumgyrate.ThenumberNmeansyoujustcircumgyratethestringNtimes,andeachtimeyoucircumgyratethestringfor45degreeanticlockwise.InputIneachcase
qq_26525215
·
2016-05-05 00:00
HDU2137:
circumgyrate
the string
Problem Description Give you a string, just
circumgyrate
.
·
2015-11-13 13:53
String
HDU 2137
circumgyrate
the string
HDU2137circumgyratethestringProblemDescriptionGiveyouastring,justcircumgyrate.ThenumberNmeansyoujustcircumgyratethestringNtimes,andeachtimeyoucircumgyratethestringfor45degreeanticlockwise.InputIneachc
qq_21120027
·
2015-08-15 18:00
HDU
HDU2137
circumgyrate
the string 模拟题
题目大意:输入一个字符串和一个整数n,n表示把字符串逆时针旋转n个45°,输出旋转后的图形。题中没说n是负数的情况,那么理论上n为负数时应该是顺时针旋转,事实证明理论是正确的,因为第一次我没考虑n #include #include usingnamespacestd; intmain() { charstr[100]; intn,i,j; while(scanf("%s%d",str,&n)!=
AC_Gibson
·
2014-11-07 21:00
HDU2137
circumgyrate
the string
circumgyratethestringTimeLimit:10000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4235 AcceptedSubmission(s):978ProblemDescription Giveyouastring,justcircumgyrate
u012846486
·
2014-09-23 11:00
HDU2137
HDU 2137
circumgyrate
the string
把题意搞懂,就是一个字符串的旋转,然后模拟一遍就好~ circumgyratethestring Ti
sky_fighting
·
2013-04-16 22:00
HDU 2137
circumgyrate
the string
题意:打印出旋转字符串思路:有几个trick:(1)横着打出来的要顶格(2)竖着打出来的要有空格在前面(3)打印出字符之后没有空格出现了(好久没切过题了,这样的题目老早要挂在word哪里工具--选项--显示所有的该死的东西的)(4)n为负数代码胡乱码,真心恶心,自己的代码是要好好修一下了.一维的简单更优雅.#include #include #include usingnamespacestd;
kg_second
·
2013-01-24 23: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
其他