当前位置:网站首页>OJ daily practice - spanning 2020
OJ daily practice - spanning 2020
2022-06-22 23:34:00 【KJ. JK】
Problem description :
Find three positive integers satisfying the following equations a, b, c:

Input
nothing
Output
a、b、c, Space apart .
Input
nothing
Output
Does not provide
Java Code :
public class Main{
public static void main(String[] args) {
int a=1;
int b=1;
int c=1;
boolean jk=true;
while(jk) {
a++;
for(int i=0;i<2021;i++) {
for(int j=0;j<2021;j++) {
if(a*i+j==2020&&i*j+a==2021) {
jk=false;
System.out.println(a);
System.out.println(i);
System.out.println(j);
}
}
}
}
}
}
author :KJ.JK
If the article is helpful to you , Welcome to praise or star, Your support is the greatest encouragement to the author , The shortcomings can be corrected in the comments section , Communication and learning
边栏推荐
- 异步FIFO
- 考过HCIP依然转行失败,职业网工最看重的到底是什么
- Spark SQL accessing JSON and JDBC data sources
- flutter外包,承接flutter项目
- 防抖&节流 加强版
- 2. interface (calculator)
- 13. 罗马数字转整数
- [redisson] source code analysis of multilock
- SqlServer 复制表的自增属性
- Reddit's discussion on lamda model: it is not stateless. It adopts a dual process. Compared with the way it edits Wikipedia, it doesn't matter whether it has feelings or not
猜你喜欢

Enjoy high-performance computing! Here comes the Tianyi cloud HPC solution

three.js模拟驾驶游览艺术展厅---打造超级相机控制器

OJ每日一练——过滤多余的空格
![[kubernetes series] overview of kubernetes](/img/c2/b42f7a0db236558cc466a508d3d579.png)
[kubernetes series] overview of kubernetes

在Word中自定义多级列表样式

2021-04-14

SOA Service Oriented Architecture

Safe and reliable! Tianyi cloud data security management platform passed the evaluation

【STM32技巧】使用STM32 HAL库的硬件I2C驱动RX8025T实时时钟芯片

mysql主从同步及其分库分表基本流程
随机推荐
Asynchronous FIFO
C sqlsugar, hisql, FreeSQL ORM framework all-round performance test vs. sqlserver performance test
LeetCode_ Backtracking_ Dynamic programming_ Medium_ 131. split palindrome string
Web Caching Technology
Uniapp modifies array properties, and the view is not updated
China Mobile's mobile phone users grow slowly, but strive for high profit 5g package users
Enjoy high-performance computing! Here comes the Tianyi cloud HPC solution
Redis缓存
canvas生成海报
Is it safe to open a securities account by downloading the qiniu app? Is there a risk?
js判断浏览器是否打开了控制台
2. interface (calculator)
Digital data depth | about software self-control, source code left, no code right
Safe and reliable! Tianyi cloud data security management platform passed the evaluation
2020-12-20
eslint 简单配置
Which securities company is the safest and best choice for stock trading account opening
保证数据库和缓存的一致性
2020-12-20
Is it safe to make an appointment to pay new debts? Is it reliable?