📄 problem 1858.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1858 -->
<HTML><HEAD><TITLE>Problem 1858</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<CENTER><IMG src="Problem 1858.files/logo.gif" align=center></IMG></CENTER>
<HR>
<CENTER><FONT color=blue size=+2>Soundex</FONT></CENTER>
<HR>
<CENTER><FONT color=green>Time limit:</FONT> 1 Seconds <FONT
color=green>Memory limit: </FONT>32768K </FONT><BR><FONT
color=green>Total Submit:</FONT> 1912 <FONT color=green>Accepted
Submit:</FONT> 969 </CENTER>
<HR>
Soundex coding groups together words that appear to sound alike based on their
spelling. For example, "can" and "khawn", "con" and "gone" would be equivalent
under Soundex coding. <BR><BR>Soundex coding involves translating each word into
a series of digits in which each digit represents a letter:
<P>1 represents B, F, P, or V<BR>2 represents C, G, J, K, Q, S, X, or Z<BR>3
represents D or T<BR>4 represents L<BR>5 represents M or N<BR>6 represents R</P>
<P>The letters A, E, I, O, U, H, W, and Y are not represented in Soundex coding,
and repeated letters with the same code digit are represented by a single
instance of that digit. Words with the same Soundex coding are considered
equivalent. </P>
<P><BR><B>Input</B><BR><BR>Each line of input contains a single word, all upper
case, less than 20 letters long. </P>
<P><BR><B>Output</B></P>
<P>For each line of input, produce a line of output giving the Soundex code.
</P>
<P><BR><B>Sample Input</B><BR><BR>KHAWN<BR>PFISTER<BR>BOBBY</P>
<P><BR><B>Sample Output</B><BR><BR>25<BR>1236<BR>11<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>University of Waterloo Local
Contest 1999.09.25</I>
<HR>
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1858">Submit</A>
<A href="http://acm.zju.edu.cn/list_problem.php?vol=9">Back</A>
<A
href="http://acm.zju.edu.cn/problem_status.php?pid=1858">Status</A> </CENTER>
<HR>
<CENTER>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=right width="65%"><A href="http://acm.zju.edu.cn/"><FONT
color=red>Zhejiang University Online Judge</FONT></A> <A
href="http://acm.zju.edu.cn/"><FONT color=red>V1.0</FONT></A></TD>
<TD align=right width="35%"><A href="http://www.zzhang.cn/"><FONT
color=#ffffff
size=-3>Book</FONT></A></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -