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
Babelfish
POJ 2503
Babelfish
表示刚刚做出来就发现不能提交了好悲催==伤心难过痛哭流涕%>_ #include #include #include #include usingnamespacestd; intmain() { mapappear; mapprintf; chars[40],sa[20],sb[20]; stringf; stringenglish; while(gets(s)) { if(s[0]=='\0'
u013263923
·
2014-07-22 17:00
A -
Babelfish
(6.1.2)(6.1使用词典解题实验范例)
SubmitStatusDescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.InputInputconsistsofup
u014028231
·
2014-07-22 15:00
Babelfish
(6.1.2)(sort结构体排序)(sscanf()基本使用方法)(二分法)
DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.InputInputconsistsofupto100,000di
u014665013
·
2014-07-22 14:00
poj2503
Babelfish
#include #include #include #include #include usingnamespacestd; charenglish[12],foreign[12]; intmain() { mapappear;//记录foreign与engliash的配对映射是否出现 maptranslate;//记录foreign到engliash的映射 /*Inputthedictiona
u011455899
·
2014-05-17 20:00
POJ 2503
Babelfish
(字典树Trie)
POJ2503
Babelfish
(字典树Trie)http://poj.org/problem?
u013480600
·
2014-04-09 00:00
ACM
10282 -
Babelfish
(stl map)
10282-
Babelfish
题目大意:就是构建一个字典,用来查询单词。阶梯思路:用stlmap,用来一一对应单词。然后string可能不支持printf,之前一直都错在这里。
u012997373
·
2014-03-31 19:00
UVa 10282 -
Babelfish
STL Map
ProblemC:BabelfishYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.Inputconsistsofupto100,000d
q745401990
·
2014-03-20 19:00
C++
算法
uva
Babelfish
(字典树)
Babelfish
Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 
Simone_chou
·
2014-02-09 23:00
字典树
[二分查找]
Babelfish
uva 10282
ProblemC:BabelfishYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.Inputconsistsofupto100,000d
u011194165
·
2014-02-05 16:00
搜索
ACM
UVA10282-
Babelfish
题意:到了一个国家,这个国家的每个单词的意思跟英语单词的意思一一对应,让你输入英语单词查找是否有所要找的单词思路:利用哈系函数,或是STL中的map#include #include #include #defineMAXN100003 usingnamespacestd; typedefcharWord[12]; Wordenglish[MAXN],foreign[MAXN]; consti
u011345461
·
2013-09-20 13:00
POJ2503-
Babelfish
(三种解法)
大致题意:输入一个字典,字典格式为“英语à外语”的一一映射关系然后输入若干个外语单词,输出他们的英语翻译单词,如果字典中不存在这个单词,则输出“eh”。。1、直接使用map。。。。 938MS#include #include #include #include #include #include usingnamespacestd; intmain() { charenglish[11],fo
yew1eb
·
2013-09-19 16:00
【索引】Hashing / Sets
AOAPCI:BeginningAlgorithmContests(RujiaLiu) Volume3.BruteForce::Hashing/Sets188-PerfectHash10282-
Babelfish
10391
u011328934
·
2013-08-31 13:00
POJ 2503
Babelfish
DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.InputInputconsistsofupto100,000dic
HRHACMER
·
2013-08-23 20:00
【处理空格】poj2503——
Babelfish
题目:点击打开链接很水的一道题,但是处理两行之间的空格花了许多功夫,最后还是用了char,因为可以自由修改,相比string需要用insert函数,更加灵活一些。也可以用hash来做,不过有些麻烦就是了。#include #include #include #include usingnamespacestd; intmain() { chard1[50],d2[50]; stringtp; m
mig_davidli
·
2013-08-10 10:00
UVA 10282
Babelfish
ProblemC:BabelfishYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.Inputconsistsofupto100,000d
u011217342
·
2013-07-31 09:00
UVa 10282 / POJ 2503
Babelfish
/ ZOJ 1109 Language of FatMouse (STL&map)
10282-BabelfishTimelimit:3.000seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1223http://poj.org/problem?id=2503http://acm.zju.edu.cn
synapse7
·
2013-07-25 10:00
数据结构
ACM
结题报告
查找树
POJ 2503
Babelfish
Babelfish
Time Limit: 3000MS Memory Limit: 65536K Total Submissions:
·
2013-07-08 20:00
poj
hash
Babelfish
poj 2503
BabelfishTimeLimit: 3000MS MemoryLimit: 65536KTotalSubmissions: 27380 Accepted: 11823DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.For
qq909157370
·
2013-05-21 22:00
算法
poj2503
Babelfish
(Trie tree 或者map)
->题目还是戳这里 #include #include #include #include #include usingnamespacestd; constintN=1000005; maplcm; charexplan[20],s[20]; intinput() { inti=0; intflag=0; charc; while(c=getchar()) { if(c=='\n') { i
ophunter
·
2013-05-17 20:00
数据结构
字典树
POJ 2503
Babelfish
(字典树)
BabelfishTimeLimit:6000/3000ms(Java/Other) MemoryLimit:131072/65536K(Java/Other)TotalSubmission(s):53 AcceptedSubmission(s):13ProblemDescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeoplehere
·
2013-04-28 16:00
poj
uva10282 -
Babelfish
(字典)
哈希查找题意简单,思路简单,就是被0坑了一次。代码如下:#include #include #defineM100013 structnode{ chardic[20],eng[20]; }; inthead[M],next[M]; nodest[M]; charnow_str[20]; inthash(char*A) { intans=0,len=strlen(A); for(inti=0;i<
shankeliupo
·
2013-03-22 19:00
POJ 2503
Babelfish
,map
题意:输入一个字典,字典格式为“英语à外语”的一一映射关系然后输入若干个外语单词,输出他们的英语翻译单词,如果字典中不存在这个单词,则输出“eh”cin、cout加速ios::sync_with_stdio(false)取消IO同步,加快执行效率。注意这样以后就一定不要cin\cout和scanf\printf混用了。#include #include #include #include usin
yew1eb
·
2013-03-22 14:00
map
poj
2503
Babelfish
poj 2503
Babelfish
(二分)
BabelfishTimeLimit:3000MS MemoryLimit:65536KTotalSubmissions:26420 Accepted:11341DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortuna
nealgavin
·
2013-02-05 16:00
UVA 10282
Babelfish
大意略。思路:手写一个map容器即可。#include #include #include #include #include #include #include usingnamespacestd; mapMap; charstr[60]; chartemp1[30],temp2[30]; voidinit() { Map.clear(); } voidread_case() { ini
Wall_F
·
2013-01-23 14:00
POJ 2503
Babelfish
map水题==我发现我有点太依赖map了。。#include #include #include #include usingnamespacestd; mapmp; intmain() { intn; charstr[50],s1[20],s2[20]; mp.clear(); while(1) { gets(str); if(strcmp(str,"")==0) break; sscanf(s
sssogs
·
2012-11-21 13:00
uva-10282 -
Babelfish
这道题目用的是字典树,复习了一下字典树。#include #include #include #include usingnamespacestd; structlist { intleap; charstr[100]; structlist*next[26]; }; structlist*tree; structlist*code() { inti; structlist*p; p=newlis
rowanhaoa
·
2012-10-06 17:00
POJ2503
Babelfish
题目大意:给出英语 ---A国语言,然后输入A国语言单词,问在字典内是否有该单词,有就输出该单词英文,无则输出eh;思路:典型的先保存再查找,有好几种解法,我用得是hash,但是再用链表的时候无限WA啊,也不知道是那个字符串哈希有问题还是链表出了问题,求强力数据找BUG啊 ACprogram:(数组哈希) #include #include #include #include #includ
kg_second
·
2012-09-10 22:00
HOJ 1898
Babelfish
(Trie树)
题意就是先输入一个字典:目标字符串-----输入字符串然后输入一个字符串,在上面的对应关系中进行查找,如果有则输出目标字符串,没有则输出eh。如果不想超时的话,明显就要套字典树了。代码贴上来,留作模板。字典树还是挺简单易懂的嘛。。。#include #include #include #include usingnamespacestd; constintnum_char=26; struc
zhuang19922011
·
2012-08-27 22:00
struct
null
search
insert
HP
branch
POJ 2503
Babelfish
字典树
Babelfish
Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 24994 Accepted
·
2012-08-10 17:00
poj
uva 10282 -
Babelfish
ProblemC:BabelfishYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.Inputconsistsofupto100,000d
Frankiller
·
2012-08-06 16:00
c
input
UP
each
Dictionary
output
北大ACM poj2503
Babelfish
BabelfishDescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstandthem.InputInputconsistsofupto1
gubojun123
·
2012-08-04 15:00
poj
poj
poj
北大ACM
UVa 10282 -
Babelfish
题目链接:UVA:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1223poj:http://poj.org/problem?id=2503类型:哈希表原题:YouhavejustmovedfromWaterlootoabigcit
king_tt
·
2012-07-27 00:00
uva
UVa 10282 -
Babelfish
题目链接:UVA:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1223poj:http://poj.org/problem?id=2503类型:哈希表原题:YouhavejustmovedfromWaterlootoabigcit
king_tt
·
2012-07-27 00:00
uva
UVa 10282 -
Babelfish
题目链接:UVA: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1223poj: http://poj.org/problem?id=2503类型:哈希表原题:YouhavejustmovedfromWaterlootoabi
shuangde800
·
2012-07-27 00:00
POJ2503
Babelfish
(hash)
10W的字符串查询,据说二分,map,sort各种过,没有尝试,写的hash,自己的hash函数TLE了,搜了个UNIX用的处理字符函数……真心弱爆了,一直以来,指针都没有理解透彻,真心渣渣……Code:#include #include #include #defineMod39917 #defineN12 #defineM100001 structWord{ charname[N],shi
l04205613
·
2012-05-31 15:00
list
struct
unix
search
insert
jobs
【STL】
Babelfish
Babelfishhttp://poj.org/problem?id=2503DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunately,youhaveadictionarytohelpyouunderstand
ACM_Ted
·
2012-05-20 21:00
F -
Babelfish
解题报告(map函数)(陈渊)
F- BabelfishTimeLimit:3000MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmit StatusDescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignla
CSUST_ACM
·
2012-03-21 13:00
String
search
input
each
Dictionary
64bit
F -
Babelfish
解题报告(黄杰)
F- BabelfishTimeLimit:3000MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmit StatusDescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignla
CSUST_ACM
·
2012-03-21 13:00
poj-2503
Babelfish
BabelfishTimeLimit: 3000MS MemoryLimit: 65536KTotalSubmissions: 22593 Accepted: 9698DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fort
cxb569262726
·
2012-03-14 02:00
null
search
input
UP
each
Dictionary
10282 -
Babelfish
(***)
/* 思路:快速排序,二分查找 */ #include #include #include structnode { chareng[20]; charfore[20]; }dic[100010]; intcmp(constvoid*a,constvoid*b) { node*pa=(node*)a; node*pb=(node*)b; returnstrcmp(pa->fore,pb->for
lhshaoren
·
2012-02-14 19:00
POJ 2503
Babelfish
题目大意很简单,就是给你字典的对应信息,然后给你查询条件要求你输出字典查询结果,如果字符串没有在字典中则输出"eh"。#include#include#include#include#includeusingnamespacestd;map mp;charstr[100];charsource[12];chard[1000010][12];intmain(){intm=0;//stringt;wh
sysucph
·
2012-02-10 22:00
POJ 2503
Babelfish
BabelfishTimeLimit:3000MSMemoryLimit:65536KTotalSubmissions:22142Accepted:9474DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaforeignlanguage.Fortunatel
cmonkey_cfj
·
2012-02-03 22:00
[Java Path Finder][JPF学习笔记][7]JPF输出详细程度设置
这个页面:http://
babelfish
.arc.nasa.gov/trac/jpf/wiki/user/output 中介绍到,jpf的一次运行主要可以生成三类输出:1.applicationoutput2
qysh123
·
2011-12-20 21:00
java
application
Path
transition
output
statistics
[Java Path Finder][JPF学习笔记][6]jpf-symbc的初步使用
这篇日志继续总结些简单的JPF使用经验:在http://
babelfish
.arc.nasa.gov/trac/jpf/wiki/projects/jpf-symbc/doc 对SymbolicPathFinder
qysh123
·
2011-12-13 18:00
poj 2503
Babelfish
trie树!!!!指针版和数组版 基础
指针版 #includeusingnamespacestd;#definemax26structnode//初始tire树{ boolboo;//判断是否是字符串最低端 charaa[15];//将b字符串最低端存a字符串 node*next[max];};node*root;voidtrie()//初始!!!!{ root=newnode; root->boo=0; for(inti=0;ine
youngyangyang04
·
2011-10-01 13:00
Babelfish
R-BabelfishTimeLimit: 3000MS MemoryLimit: 65536K 64bitIOFormat: %I64d&%I64u[Submit] [GoBack] [Status]DescriptionYouhavejustmovedfromWaterlootoabigcity.Thepeopleherespeakanincomprehensibledialectofaf
q573290534
·
2011-08-05 22:00
POJ2503-
Babelfish
转载请注明出处:優YoUhttp://user.qzone.qq.com/289065406/blog/1304498724 大致题意:输入一个字典,字典格式为“英语à外语”的一一映射关系然后输入若干个外语单词,输出他们的英语翻译单词,如果字典中不存在这个单词,则输出“eh” 解题思路:水题,输入时顺便用STL的map标记外语是否出现过,然后再用map建立“外语à英语”的映射,那么输出时先查找“
lyy289065406
·
2011-07-30 22:00
input
Dictionary
POJ 2503
Babelfish
hash / qsort+ bsearch
题意:先输入字典,然后查词。(以输入空格为界)题解:别忘了字符串二分查找#include #include usingnamespacestd; #defineprime100003 structUnion { chareng[11],fore[11]; }p[100001]; structnode { intid; boolflag; }hash[prime][10]; intget_h
Tsaid
·
2011-07-30 16:00
struct
null
POJ2503
Babelfish
Trie树
ProblemAddress:http://poj.org/problem?id=2503 Trie树(即字典树)。 动态创建。 第一次写字典树,写得很快,连最后的DEBUG都不用,没想到居然一次AC。很是兴奋。 后来看了discuss发现比较多的人用了快排+二分,效果也不错。不过既然我字典树过了,那就…… 在此还要摘抄一个输入方式,虽然我用的不是这种。 //判断某一行是否为空行,并以此作为上下文
Human_CK
·
2011-03-24 23:00
c
百度
null
Firefox插件列表
BabelFish
[url]https://addons.mozilla.org/zh-CN/firefox/addon/7004/[/url]翻译ColorZil
desert3
·
2011-01-10 16:34
Tool
上一页
1
2
3
4
下一页
按字母分类:
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
其他