当前位置:网站首页>Sloppy formula
Sloppy formula
2022-06-26 02:29:00 【886emmmm】
public class T3 {
public static void main(String[] args) {
int q=0;
// The numbers are in a,b,c,d,e Instead of ;
for (int a = 1; a < 10; a++) {
for (int b = 1; b < 10; b++) {
for (int c = 1; c < 10; c++) {
for (int d = 1; d < 10; d++) {
for (int e = 1; e < 10; e++) {
// Multiply the ten digit number by ten and add one digit to get the number , You get the same number of ten bits as these two numbers , The same goes for Baiwei
if (a!=b&&a!=c&&a!=d&&a!=e) {
if (b!=c&&b!=d&&b!=e) {
if (c!=d&&c!=e) {
if (d!=e) {
if ((a * 10 + b) * (c * 100 + d * 10 + e) == (a * 100 + d * 10 + b)
* (c * 10 + e)) {
q++;
}
}
}
}
}
}
}
}
}
}
System.out.println(q);
}
}
边栏推荐
- vs2015+PCL1.8.1+qt5.12-----(1)
- Here comes the official zero foundation introduction jetpack compose Chinese course!
- How to use commands to write file names (including paths) in folders to txt files
- 数字商品DGE--数字经济的财富黑马
- Which SMS plug-in is easy to use? The universal form needs to be tested by sending SMS
- MySQL必须掌握4种语言!
- Explain the JVM clearly at one time and don't be asked by the interviewer again
- Qtvtkvs2015 test code
- MySQL must master 4 languages!
- Tarte aux framboises + AWS IOT Greengrass
猜你喜欢

基於鄰接矩陣的廣度優先遍曆

多测师拱墅肖sir_工作目录下的use websocket报错解决方案

樹莓派 + AWS IoT Greengrass

Largeur d'abord traversée basée sur la matrice de contiguïté

Implementation of image binary morphological filtering based on FPGA -- Corrosion swelling

MySQL doit maîtriser 4 langues!

Digital commodity DGE -- the dark horse of wealth in digital economy

Cow sequencing problem

【图像过滤】基于matlab GUI图像过滤系统【含Matlab源码 1913期】

Implementation of depth first traversal based on adjacency matrix
随机推荐
Pointnet/pointnet++ learning
Wechat applet
基于邻接表的广度优先遍历
One year's work
Ardiuno智能电蚊拍
Keda 2.7.1 brief analysis of scaledjob code
Chrome browser developer tool usage
Markov decision process (MDP): gambler problem
[JS] free API to judge holidays, working days, Saturdays and Sundays
Jenkins localization and its invalid solution
Implementation of depth first traversal based on adjacency matrix
Blazor University (33)表单 —— EditContext、FieldIdentifiers
Prompt to update to the latest debug version during vscode debugging
【图像过滤】基于matlab GUI图像过滤系统【含Matlab源码 1913期】
df报错Stale file handle
OA process editing
Largeur d'abord traversée basée sur la matrice de contiguïté
V4l2+qt video optimization strategy
How to solve the problem that the iPhone 13 lock screen cannot receive the wechat notification prompt?
@Query 疑难杂症