当前位置:网站首页>Blue Bridge Cup - Castle formula
Blue Bridge Cup - Castle formula
2022-07-06 03:37:00 【Deduce life】
1. subject

2. Ideas Violence starts with 10000 Find the matching number Do it for the first time Five unequal conditions mean wrong Then improved The code is quite long
3. Code
public class J84 {
public static void main(String[] args) {
for(int i=10000;i<100000;i++) {
int a=i/10000;// Ten thousand position
int b=i/1000%10;// Thousand bit
int c=i/100%10;// Hundred bit
int d=i/10%10;// ten
int e=i%10;// bits
int f=e*10000+d*1000+c*100+b*10+a;// Turn into EDCBA
for(int j=1;j<10;j++) {// The condition that five numbers are not equal to each other
if(a!=b&&a!=c&&a!=d&&a!=e&&b!=c&&b!=d&&b!=e&&c!=d&&c!=e&&d!=e) {
if(i*j==f) {
System.out.println(i);
}
}
}
}
}
}边栏推荐
- A brief introduction to symbols and link libraries in C language
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- [Li Kou] the second set of the 280 Li Kou weekly match
- 关于非虚函数的假派生
- 记录一下逆向任务管理器的过程
- Image super resolution using deep revolutionary networks (srcnn) interpretation and Implementation
- js凡客banner轮播图js特效
- 1.16 - check code
- canvas切积木小游戏代码
- Esbuild & SWC: a new generation of construction tools
猜你喜欢

Recommended papers on remote sensing image super-resolution

EDCircles: A real-time circle detector with a false detection control 翻译

SWC介绍

mysql从一个连续时间段的表中读取缺少数据

Recommended foreign websites for programmers to learn

2.13 weekly report

1.16 - check code

Computer graduation project asp Net fitness management system VS development SQLSERVER database web structure c programming computer web page source code project

JS音乐在线播放插件vsPlayAudio.js
![[slam] lidar camera external parameter calibration (Hong Kong University marslab) does not need a QR code calibration board](/img/07/973722bf484b374f752177dfc48ef5.png)
[slam] lidar camera external parameter calibration (Hong Kong University marslab) does not need a QR code calibration board
随机推荐
Factors affecting user perception
UDP reliable transport protocol (quic)
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
Python implementation of maddpg - (1) openai maddpg environment configuration
Getting started with applet cloud development - getting user search content
[analysis of variance] single factor analysis and multi factor analysis
Microkernel structure understanding
3.2 detailed explanation of rtthread serial port device (V2)
3分钟带你了解微信小程序开发
Cubemx 移植正点原子LCD显示例程
Quick sort function in C language -- qsort
Advanced learning of MySQL -- Fundamentals -- isolation level of transactions
BUAA magpie nesting
Redis cache breakdown, cache penetration, cache avalanche
【Qt5】Qt QWidget立刻出现并消失
Canvas cut blocks game code
Arabellacpc 2019 (supplementary question)
SWC介绍
StrError & PERROR use yyds dry inventory
Record the process of reverse task manager