Rovidow/
共43个网摘 [
1 2 ]
下一页 |
访问Rovidow的个人空间
Rovidow收录,时间:2007-9-26 13:32:24 | 相关网摘,我也收藏
2、赴日软件开发工程师(SE) (6人) 工作地点:日本、北京
职位描述及要求:
(1)计算机及相关专业,本科以上学历。
(2)具有2年以上软件开发经验,熟悉对日软件开发的流程及行业特性。从事过对日项目开发者优先考虑。
(3)日语二级,能读懂日文文档。能用日语与客户沟通者优先考虑。
(4)有javascript、JSP、JAVA的开发经验,熟悉Struts架构,了解Tomcat、Weblogic等应用服务器;或能够运用.NET(VB.NET, C#)、C 等其中一种以上开发工具。
(5)至少熟悉 Oracle, DB2 或 MS SQL Server 等大型数据库中的一种。对PL/SQL开发有一定的了解。
(6)具备良好的沟通能力和团队合作精神。
(7)能够短期或长期赴日出差。
http://topic.csdn.net/u/20070921/15/0901bfcd-4597-4d69-82e7-a9132689385c.html
Rovidow收录,时间:2007-9-10 11:38:56 | 相关网摘,我也收藏
//: c03:E11_Vampire.java
// Solution by Dan Forhan
import java.applet.*;
import java.awt.*;
public class Vampire extends Applet {
private int num1, num2, product;
private int[] startDigit = new int[4];
private int[] productDigit = new int[4];
private int count = 0;
private int vampCount = 0;
private int x, y;
public void paint(Graphics g) {
g.drawString("Vampire Numbers", 10, 20);
g.drawLine(10, 22, 150, 22);
// Positioning for output to applet:
int column = 10, row = 35;
for(num1 = 10; num1 <= 99; num1++)
for(num2 = 10; num2 <= 99; num2++) {
product = num1 * num2;
startDigit[0] = num1 / 10;
startDigit[1] = num1 % 10;
startDigit[2] = num2 / 10;
startDigit[3] = num2 % 10;
productDigit[0] = product / 1000;
productDigit[1] = (product % 1000) / 100;
productDigit[2] = product % 1000 % 100/10;
productDigit[3] = product % 1000 % 100%10;
count = 0;
for(x = 0; x < 4; x++)
for(y = 0; y < 4; y++) {
if (productDigit[x] == startDigit[y]){
count++;
productDigit[x] = -1;
startDigit[y] = -2;
if (count == 4) {
vampCount++;
int a = (int)Math.random() * 100;
int b = (int)Math.random() * 100;
int c = (int)Math.random() * 100;
if (vampCount < 10) {
g.drawString("Vampire number "
+ vampCount + " is " + num1 +
" * " + num2 + " = "+ product,
column, row);
row += 20;
} else {
g.drawString("Vampire number "
+ vampCount + " is " + num1 +
" * " + num2 + " = "+ product,
column, row);
row += 20;
}
}
}
}
}
}
} ///:~
这个是Thinking in Java作者给的答案,我在《Thinking in Java, 2nd edition, Annotated Solution Guide Revision 1.0》里找到的。
关于吸血鬼数:
若 合成数 v 有偶数个位n ,且是 n/2 个位的正整数 x 和 y 的积,而且 x 和 y 不是同时以0为个位数,组成 x 和 y 的数字,刚好就是 v 的数字,那麽 v 就是 吸血鬼数 (vampire number),而 x 和 y 则称为 尖牙 。
例如1260是吸血鬼数,21和60是其尖牙,因为21×60=1260。可是126000=210×600却非,因为210和600都以0为个位数。
吸血鬼数是 傅利曼数 的一种。
1994年 柯利弗德·皮寇弗 在 Usenet 社群sci.math的文章中首度提出吸血鬼数。後来皮寇弗将吸血鬼数写入他的书 Keys to Infinity 的第30章。
http://community.csdn.net/Expert/TopicView3.asp?id=5674583
共43个网摘 [
1 2 ]
下一页