第一、二、三題:
出題時間:2006.04.12
題目:
Please write a JAVA program for the following tasks.
Input : two number R and S of 3 non-duplicated digits.
purposes :
1. show the relationship ( = , < , > ) of the two numbers.
2. show how many digits shared by R and S.
→123 , 456 : 0
→123 , 302 : 2
3. show the similarity of R and S using xAyB format.
→123 , 456 : 0A0B
→123 , 302 : 0A2B
→123 , 123 : 3A0B
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.228.152.234