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
Ancient
uva 1339
Ancient
Cipher(字符串处理)
AncientRomanempirehadastronggovernmentsystemwithvariousdepartments,includingasecretservicedepartment.Importantdocumentsweresentbetweenprovincesandthecapitalinencryptedformtopreventeavesdropping.Themos
u011328934
·
2013-08-18 11:00
Atlantis(hdu1151,求面积并,线段树+离散化+扫描)
Limit: 1000MS Memory Limit: 10000KTotal Submissions: 14468 Accepted: 5551DescriptionThere are several
ancient
JHC23
·
2013-08-15 10:00
LA 3213 -
Ancient
Cipher
看题传送门感叹,英语要好好学啊。。。。。题目要求满足一一映射,就是说出现次数要相同。。。TT所以统计次数然后排序。。比较。。。。#include #include #include usingnamespacestd; constintMAXN=100+10; chara[MAXN],b[MAXN]; intnum_a[26],num_b[26]; boolok(chara[],charb[])
murmured
·
2013-08-06 20:00
HDU 1134 卡特兰数 大数乘法除法
Problem Description This is a small but
ancient
game.
v5browser
·
2013-06-29 11:00
HDU
HDU 1134 卡特兰数 大数乘法除法
Problem Description This is a small but
ancient
game.
从此醉
·
2013-06-29 11:00
HDU
poj
Ancient
Cipher 古代密码
古代密码总时间限制: 1000ms内存限制: 65536kB描述 古罗马帝王有一个包括各种部门的强大政府组织。其中有一个部门就是保密服务部门。为了保险起见,在省与省之间传递的重要文件中的大写字母是加密的。 当时最流行的加密方法是替换和重新排列。 替换方法是将所有出现的字符替换成其它的字符。有些字符会碰巧替换成它自己。例如:替换规则可以是将'A'到'Y'替换成它的下一个字符,将'Z'替换
locusxt
·
2013-05-19 23:00
poj
cpp
coderforce 1c--
Ancient
Berland Circusp
一道几何题,先是海伦定理:三角形三边为a,b,c, 外接圆半径为R; p=(a+b+c)/2; S=sqrt(p*(p-a)*(p-b)*(p-c));再由正弦定理:S=a*b*c/(4*R); 由 推出。由上述公式可求出外接圆半径R;再由余弦定理: 求出三角形中的其中2个边对应的圆心角的大小(即2个半径R和一条三角形边组成的三角形),另外一角可由2pie减去已求出的2角。3角均求出之后,再求3
ymrfzr
·
2013-04-30 19:00
几何
coderforce
LA 3213
Ancient
Cipher
大意略。#include #include #include #include #include #include #include #include #include #include usingnamespacestd; constintmaxn=1010; constintsigma_size=26; charstr1[maxn],str2[maxn];
Wall_F
·
2013-04-11 21:00
POJ-2159-
Ancient
Cipher
水题,代码:#include #include #include #include usingnamespacestd; charstra[101],strb[101]; intcounta[27],countb[27]; intmain() { while(scanf("%s%s",stra,strb)!=EOF) { memset(counta,0,sizeof(counta)); memse
z309241990
·
2013-03-27 18:00
DFS深度优先搜索结合剪枝的应用
The doggie found a bone in an
ancient
maze, which fascinated him a lot.
从此醉
·
2013-03-21 22:00
DFS
uva 1339
Ancient
Cipher
点击打开链接uva 1399 题意:给定两个长度分别为n的字符串,判断他们能否一一对应 思路:暴力 分析: 1 首先我们知道这两个字符串的长度最大为100并且相等 2 刚开始我的想法是对两个字符串排序,然后从头开始枚举判断。这个想法妥妥的过了样例,然而等到的确实一顿怒wa。下面举例证明我的思路是错误的 3 假设有两个字符串为ABBCFEA 和 CCGGHJB。排序后为AABBCEF和 B
从此醉
·
2013-03-19 14:00
uva
uva 1339
Ancient
Cipher
点击打开链接uva1399题意:给定两个长度分别为n的字符串,判断他们能否一一对应思路:暴力分析:1首先我们知道这两个字符串的长度最大为100并且相等2刚开始我的想法是对两个字符串排序,然后从头开始枚举判断。这个想法妥妥的过了样例,然而等到的确实一顿怒wa。下面举例证明我的思路是错误的3假设有两个字符串为ABBCFEA和CCGGHJB。排序后为AABBCEF和BCCGGHJ如果按照我的思路那么我们
cgl1079743846
·
2013-03-19 14:00
UVA 10361 - Automatic Poetry
In Tomb Raider XIV, Lara is, as ever, gunning her way through
ancient
Egyptian pyramids, prehistoric
hellobin
·
2013-03-13 00:00
auto
uvalive 3213
Ancient
Cipher
题目:给定两个只含大写字母的等长字符串,问两者之间是否存在一一映射分析:考察一一映射的概念,将两个字符串分别作字母统计,再按字母出现个递增的顺序排序(排列的是每个字母出现的个数),如果排序后结果一样那么两者是一一映射1#include 2#include 3#include 4#include 5#definezz 6usingnamespacestd; 7intmain(){ 8#
·
2013-02-10 17:00
live
POJ 2159
Ancient
Cipher
转载自http://blog.csdn.net/shiow1991/article/details/7248495DescriptionAncientRomanempirehadastronggovernmentsystemwithvariousdepartments,includingasecretservicedepartment.Importantdocumentsweresentbetwe
pan_00_hao
·
2013-01-28 22:00
Ancient
Cipher
#include #include #include #include usingstd::sort; intcount1[26],count2[26]; charstr1[110],str2[110]; intmain() { while(~scanf("%s",str1)) { scanf("%s",str2); intlen1=strlen(str1),l
gyarenas
·
2012-11-27 20:00
hdu 3460
Ancient
Printer
点击打开链接hdu3640思路:字典树分析:1题目要求的是给定n个字符串,现在有一台的打印机有三种操作“取字符”,“删除最后一个字符”,“打印当前单词”,问最少需要几次的操作(最后一个单词不用删除)。2要最少的次数,那么就是使得最后一个单词必须是所有单词中的最长的,所以这里需要涉及到对二维数组的排序利用qsort从小到大;3如果两个单词有相同的公共前缀那么肯定是可以减少输入的次数,所以在建字典树的
cgl1079743846
·
2012-10-26 01:00
HDU 3460
Ancient
Printer
链接:http://acm.hdu.edu.cn/showproblem.php?pid=3460题目:AncientPrinterTimeLimit:2000/1000MS(Java/Others) MemoryLimit:131072/65536K(Java/Others)TotalSubmission(s):955 AcceptedSubmission(s):441Problem
shuangde800
·
2012-10-25 16:00
poj 2159
Ancient
Cipher 简单的密码转化问题
AncientCipherTimeLimit: 1000MS MemoryLimit: 65536KTotalSubmissions: 22033 Accepted: 7472DescriptionAncientRomanempirehadastronggovernmentsystemwithvariousdepartments,includingasecretservicedepartment.
yangshuolll
·
2012-09-29 21:00
POJ2159
Ancient
Cipher
原题传送:http://poj.org/problem?id=2159排序。题目说了两个加密方法,判断是否可以完成从加密串到原串的转换。这道题的本质是字符出现的频率按升序(或降序)排列后是否一样,而不关心该频率是从哪一个字母转换来的。做这道题的过程中出现了这样的错误需要惊醒自己:if(len=strlen(s1)!=strlen(s2){......}我以为会先把strlen(s1)的值赋给len
·
2012-09-14 15:00
poj
ASP.NET 路由实现页面静态化
Url的友好也取决于其命名,为一篇描述古代文学的页面起名用
ancient
-literature.html当然比随便起的名字例如aa.html之流要友好。
wsql
·
2012-09-06 13:00
asp.net
bnuoj3013--
Ancient
Keyboard
bnuoj3013--AncientKeyboardhttp://www.bnuoj.com/bnuoj/contest_show.php?cid=926#problem/9911对模拟题不太感冒,这道题搞了好久,感谢小焦~~网选在即,一周的加强训练马上就要过去了,着急啊,着急啊!!#include#include#define LEN typedef struct{ char c;
HooLee
·
2012-09-01 11:00
ASP.NET 路由实现页面静态化
Url的友好也取决于其命名,为一篇描述古代文学的页面起名用
ancient
-literature.html当然比随便起的名字例如aa.html之流要友好。页面静态化并不代表你一定要用后缀名为.
·
2012-07-16 09:00
asp.net
POJ 2159
Ancient
Cipher [杂题]
题意与思路:主要难点在理解题意。题目给定的两个例子只是例子!具体编码并不一定。但是具体编码必须满足的条件是:各个字符的编码各不相同(即译码的时候才能一一对应)。所以其实很简单,只需要统计一下两个字符串各个字符的出现次数,然后排序一下,然后再比较一下。如果次数出现情况一模一样。则输出YES。#include #include #include #include #include #include #
wuyanyi
·
2012-06-13 22:00
poj 2159
Ancient
Cipher
/*完全没有看懂题意,题目需要求的是:(粘贴别人的题意)这道题如果没看懂题意,绝对不是水题,能愁死你,而如果看懂了的话,的确稍微有点小水。 关键是对代替加密和置换加密的理解,题目中给出的例子容易误导你进入误区:代替加密是按照一定规律来的。所以你会很容易的想到先排序,找两个字符串的差距,如果一样就YES了。。 其实,代替加密没有“规律”!A可以对应任意的26个字母。 不知道说明白了没有 所以是否相同
yzl_rex
·
2012-05-01 23:00
加密
String
ASP.NET 路由实现页面静态化(附在线Demo和Source)
Url的友好也取决于其命名,为一篇描述古代文学的页面起名用
ancient
-literature.html当然比随便起的名字例如aa.html之流要友好。
HackerVirus
·
2012-04-01 10:00
POJ 2159
Ancient
Cipher
开始把题目理解错了,以为字母替换都是将字母替换成它的下一个字母,即每个字符加1(z替换成A),其实每个字符加多少是没有限制的。解题的思路是统计加密后和加密前的字母出现频率,得到两个频率数组(每个数组有26个元素),不管加密时将字母往后移多少个位置,两个频率数组排序后是相等的。代码:#include #include intpartition(int*s,intbegin,intend) { in
lijiecsu
·
2012-03-28 20:00
POJ 2159
Ancient
Cipher(我的水题之路——双重加密)
AncientCipherTimeLimit: 1000MS MemoryLimit: 65536KTotalSubmissions: 20020 Accepted: 6786DescriptionAncientRomanempirehadastronggovernmentsystemwithvariousdepartments,includingasecretservicedepartment.
shiow1991
·
2012-02-10 14:00
加密
service
System
input
each
permutation
POJ 2159
Ancient
Cipher 杂题
题意:给定str1,str2,如果str2经过加密可以变成str1。输出YES,否则输出NO.加密方式有两种,一种是改变字符,一种是调换顺序。题解:这题还是耽搁了一会儿。一开始把题意理解错了,将substitutioncipher(置换密码):当做按字典序偏移任意个位置。所以一直WR。看了别人的解释:“substitutioncipher(置换密码):Substitutioncipherchang
Tsaid
·
2011-09-09 23:00
加密
input
each
破解
permutation
ACM HDU 3460
Ancient
Printer(简单题)
AncientPrinterTimeLimit:2000/1000MS(Java/Others) MemoryLimit:131072/65536K(Java/Others)TotalSubmission(s):704 AcceptedSubmission(s):309ProblemDescriptionThecontestisbeginning!Whilepreparingtheco
ACM博客_kuangbin
·
2011-08-25 10:00
UVA 10451
Ancient
Village Sports && UVA 11909 Soya Milk && UVA 11152 Colourful Flowers
三个纯数学计算题,WA了好几次,充分说明我是多么多么马虎!!!!这三个题都涉及了好多三角函数,我用三角函数都用怕了,怕伤精度TT。。水题而已,贴一起吧。第一个题求外接圆与多边形的面积差,内切圆与多边形的面积差。第二个是求剩下的体积,那个体积是一个立方体的一半。不过当给的角度比较大的时候,剩余状况是另一种状况了。第三题,求外接圆,内切圆面积神马的#include #include #include
zxy_snow
·
2011-08-18 20:00
c
System
数学计算
POJ2159-
Ancient
Cipher
转载请注明出处:優YoUhttp://user.qzone.qq.com/289065406/blog/1299062729 PS:本题稍微说一下题意(当时有点发牢骚的感觉,O(∩_∩)O哈哈~)一种我认为是比较符合现实的解题思路,但是总是WrongAnswer 咋看之下确实是被题目忽悠了,一般思路都是先对置换解密,再对乱序解密,但是题目所给出的乱序码只有10个,,输入要求却是不大于100的字符
lyy289065406
·
2011-07-29 01:00
Algorithm
加密
String
解密
input
破解
英语札记
/history/615/ Initially authorities regarded archeological finds merely as hoards ; for example,
ancient
urey
·
2011-07-21 12:00
英语
Ancient
China Story of Shen-《Kung Fu Panda 2》
端午假日,上海这几天时晴时雨,下午趁空去看了3D版的,剧情方面显得有些俗套,好莱坞自有其经典的三段式。出彩的是3D场景超赞,特别是Gongmencity和LordShenTower的远景。值得一提的是东方韵味的配乐,制作方在音乐旋律上可以说是下足了功夫。"整个作品的水准堪与已故电影配乐大师杰瑞戈德史密斯的《花木兰》(Mulan)相媲美",其中片头曲《古老的中国/沈的故事》(AncientChina
maclean_007
·
2011-06-04 21:14
oracle
数据库
film
2159,
Ancient
Cipher 用数组计数
#includeusingnamespacestd;#includeintmain(){chara[105];charb[105];intcoua[26],coub[26];while(cin>>a){cin>>b;memset(coua,0,sizeof(coua));memset(coub,0,sizeof(coub));intlen=strlen(a);for(inti=0;i
youngyangyang04
·
2011-04-13 18:00
Seven Kingdoms I + II +
Ancient
Adversaries (Game Rips) - Bjørn Lynne
阅读更多http://forums.ffshrine.org/f72/seven-kingdoms-i-ii-
ancient
-adversaries-game-45781/SevenKingdomsI+
mlxia
·
2011-03-06 19:00
Seven Kingdoms I + II +
Ancient
Adversaries (Game Rips) - Bjørn Lynne
http://forums.ffshrine.org/f72/seven-kingdoms-i-ii-
ancient
-adversaries-game-45781/SevenKingdomsI+II+AncientAdversaries
mlxia
·
2011-03-06 19:00
game
upright conduct
Indeed in the box with a picture about two feet wide paper
ancient
seshengxiang light is looking at is
liwoon11
·
2011-01-18 16:00
Flash
Access
UP
performance
AIR
POJ-2159-
Ancient
Cipher-解题报告
题意是说第一行字符串能否由第二行字符串经过“替代”和“位置转换”后得到。做题时,实际上只统计两个字符串的各字符出现的“次数”是否相同即可(不必计较这相同次数是否字符也相同)。 算法思想如下:1)读入两行字符串;2)分别统计这两行字符串中每个字符出现的次数,并将其结果存在num1[26],num2[26]数组;3)对上述两个数组进行降序排序;4)比较两个数组是否相同:若相同,输出“YES”;若不同,
lihao21
·
2010-12-21 10:00
算法
String
ACM again-
Ancient
China Mathematics again 表达式计算 只有+和*和括号
ACMagain-AncientChinaMathematicsagainTimeLimit:1Second MemoryLimit:32MegabyteTotalsubmit:368 Accepted:31 DescriptionACMagain-AncientChinaMathematicsagainACMagain-AncientChinaMathematicsagainDr.Khaspub
kongming_acm
·
2010-09-10 21:00
1006 ACM again-
Ancient
China Mathematics again //The ACM/ICPC Asia Harbin Online First Round Contest
ACMagain-AncientChinaMathematicsagainTimeLimit: 1Second MemoryLimit: 32MegabyteTotalsubmit: 341 Accepted: 25 DescriptionACMagain-AncientChinaMathematicsagainACMagain-AncientChinaMathematicsagainDr
hqd_acm
·
2010-09-10 19:00
Integer
input
each
output
2010
Numbers
Ancient
Printer 字典树 hdu 3460
AncientPrinterTimeLimit:2000/1000MS(Java/Others) MemoryLimit:131072/65536K(Java/Others)TotalSubmission(s):466 AcceptedSubmission(s):224ProblemDescriptionThecontestisbeginning!Whilepreparingtheco
abcjennifer
·
2010-08-27 11:00
struct
Integer
delete
output
traversal
printing
《Common Interview Answers》
William is original from
ancient
German and th
william750214
·
2010-08-17 06:00
oracle
linux
工作
db2
AIX
POJ 2159
Ancient
Cipher(字符频率统计)
//简单题,注意理解题意!我就是因为理解错题意WA了N次,注意那个对应关系不是固定不变的,是每个字母可以有独立的对应//因此不必考虑对应了,只需要考虑字母出现频数相同就行//sort频率数组后然后比较,如果都相同则YES#include#include#includeusingnamespacestd;stringstr1,str2;intf1[26],f2[26];intmain(){memse
ChinaCzy
·
2010-06-13 01:00
stdstring
Ancient
Cipher--POJ2159
Ancient
Cipher Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13258 Accepted
wapysun
·
2010-05-18 08:00
poj
1.1.A (Very) Brief History of Concurrency(关于并发的历史)
A (Very) Brief History of Concurrency(关于并发的历史) In the
ancient
past, computers didn't have operating
lvhuiqing
·
2009-12-22 15:00
多线程
编程
虚拟机
Access
IT厂商
[Java Concurrency in Practice]1.1. A (Very) Brief History of Concurrency
A (Very) Brief History of Concurrency 关于并发历史的简短描述 In the
ancient
past, computers didn't have operating
lvhuiqing
·
2009-12-21 19:00
[Java Concurrency in Practice]1.1.A (Very) Brief History of Concurrency
A (Very) Brief History of Concurrency 关于并发历史的简短描述 In the
ancient
past, computers didn't have operating
lvhuiqing
·
2009-12-21 19:00
2007希望英语风采大赛
ancient
times crucial carbon dioxide The question is as follows
speed847
·
2009-07-21 21:00
2007
中国传统的节日-The Mid-Autumn Festival
In
ancient
China, emperors followed the
·
2009-03-17 11:00
val
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他