当前位置:网站首页>There are 100 people eating 100 apples, one adult eating 4 apples, and four children eating 1 apple. How can they eat exactly 100 apples? Use any high-level language you are familiar with
There are 100 people eating 100 apples, one adult eating 4 apples, and four children eating 1 apple. How can they eat exactly 100 apples? Use any high-level language you are familiar with
2022-07-04 08:47:00 【,, country】
public static void main(String[] args) {
for(int i=1; i<=100; i++)
{
for(int j=1; j<=400; j++)
{
if( (i * 4) + (j*0.25) == 100 && i+j==100 )
{
System.out.println(i + "=======" + j);
}
}
}
}
边栏推荐
- Awk from entry to earth (7) conditional statements
- 小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
- awk从入门到入土(18)gawk线上手册
- 学习Nuxt.js
- Turn: excellent managers focus not on mistakes, but on advantages
- Azure ad domain service (II) configure azure file share disk sharing for machines in the domain service
- Newh3c - network address translation (NAT)
- deno debugger
- Comparison between sentinel and hystrix
- 根据数字显示中文汉字
猜你喜欢

ctfshow web255 web 256 web257

【无标题】转发最小二乘法

广和通高性能4G/5G无线模组解决方案全面推动高效、低碳智能电网

Redis 哨兵机制

awk从入门到入土(12)awk也可以写脚本,替代shell

Fault analysis | MySQL: unique key constraint failure

Codeforces Round #803 (Div. 2)(A-D)

Question 49: how to quickly determine the impact of IO latency on MySQL performance

Codeforces Round #803 (Div. 2)(A-D)

DM database password policy and login restriction settings
随机推荐
Getting started with microservices: gateway gateway
Newh3c - routing protocol (RIP, OSPF)
How college students choose suitable computers
Webapi interview question summary 01
C, Numerical Recipes in C, solution of linear algebraic equations, Gauss Jordan elimination method, source code
Awk from entry to earth (7) conditional statements
awk从入门到入土(8)数组
SQL statement view SQL Server 2005 version number
Basic discipline formula and unit conversion
Add log file to slim frame - PHP
Learn nuxt js
deno debugger
Leetcode topic [array] -136- numbers that appear only once
Ehrlich sieve + Euler sieve + interval sieve
Use preg_ Match extracts the string into the array between: & | people PHP
CLion-控制台输出中文乱码
Developers really review CSDN question and answer function, and there are many improvements~
地平线 旭日X3 PI (一)首次开机细节
Three paradigms of database design
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources