import java.applet.*;
import java.awt.*;
@SuppressWarnings("serial")
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;
}
}
}
}
}
}
} // /:~
分享到:
相关推荐
一个用于craftbukkit(Minecraft 服务器模式)的模组,它允许玩家成为能够飞行并且比玩家更强壮的吸血鬼,但会在太阳下燃烧。
@inproceedings{vampire, author = {Suchin Gururangan and Tam Dang and Dallas Card and Noah A. Smith}, title = {Variational Pretraining for Semi-supervised Text Classification}, year = {2019}, booktitle...
Vampire
the vampire diaries second season english
配合Net Vampire及IE v4.0以上版本使用的Add-On,可以一口气为你抓下一个网站里所有的图片部分,包括背景图或GIF,JPEG,JPG,PNG,TIF,BMP等格式都不是问题,并附有图片预视、排程抓图、支持续传等功能
为“白狼”吸血鬼-化妆舞会和吸血鬼-黑暗时代生成NPC角色。
计算机游戏 Vampire: The Masquerade 的角色产生工具,附源码
如果在同一个行业内晋升他们(这意味着它们在您的指挥系统中),那么它们将被视为grave-vampire_boy或grave-vampire_girl 。 对于那些在保留者(如我自己)上的人, grave-zombie_boy或grave-zombie_girl是首选。 ...
有多种关于吸血鬼数字的算法 ! 输出结果为: 1260 = 21 * 60 1395 = 15 * 93 1435 = 41 * 35 1530 = 51 * 30 1827 = 87 * 21 2187 = 27 * 81 6880 = 86 * 80 6880 = 80 * 86 以上仅供参考:
1.游戏为平面二维空间游戏,场景为平坦草地。草地的形状为矩形,由16X16个正方形方格(参数可调)组成。每个方格可以是路、草、石头(障碍物)、宝石或其他属性(种类可选)。有两个特殊的格子,一个称为基地,另一...
Save The Vampire 拯救吸血鬼 - Unity建造吸血鬼城堡逃脱游戏项目源码C# 支持Unity版本2019.427f1及以上 概述 拯救吸血鬼是一款大胆的游戏,你以疯狂的速度在城堡的路径上奔跑,通过选择路径图案来建造最大的城堡...
《VAMPIRE SWEETIE》背景素材
##挑战:给定一个数字,检测并显示介于0和该给定数字之间的所有吸血鬼数字吸血鬼编号-Fang1 * Fang2 规则1:吸血鬼编号必须为偶数位数规则2:每个毒牙的位数必须是吸血鬼数的一半规则3:吸血鬼编号中的所有数字必须...
这是一个用引导的项目。入门首先,运行开发服务器: npm run dev# oryarn dev用浏览器打开以查看结果。您可以通过修改pages/index.js来开始编辑页面。页面在您编辑文件时自动更新。可以在上访问。...
吸血鬼5e FoundryVTT Sytem for the Vampire the Masquerade 5th Edition
吸血鬼是Google桌面的插件,可将您从TheBat发出的电子邮件编入索引! 邮件客户端。
Vampire Rave Mobile的开放源代码Android应用程序项目,用于创建教程和其他实用程序
将vampire.cna , vampire_creds.cna和owned_utils.py放在cobaltstrike文件夹的根目录中 chmod u+x owned_utils.py 通过脚本管理器将vampire.cna和vampire_creds.cna加载到Cobalt Strike中 雨弹 正常启动neo4j和...
吸血鬼 Vampire 是一个用于部署 Python 构建的工具。 建议用途: $ vmp --version 279 --packages django==1.7.1 --target /home/joe/MyPython 安装: pip install vampire