当前位置:网站首页>Pythagorean tuple od js
Pythagorean tuple od js
2022-07-31 02:19:00 【Big chicken thighs are the best】


let a=readline()
let b=readline()
let res='NA',f=false
function hz(x,y){
let min=Math.min(x,y)
for(let p=2;p<min/2;p++){
if(x%p==0&&y%p==0)return false
}
return true
}
for(let i=a;i<b-2;i++){
for(let j=i+1;j<b-1;j++){
for(let k=j+1;k<b;k++){
if(hz(i,j)&&hz(i,k)&&hz(j,k)){
if(i*i+j*j==k*k){
f=true
console.log(i+' '+j+' '+k)
}
}
}
}
}
if(!f)console.log(res)
边栏推荐
- 来自一位女测试工程师的内心独白...
- 力扣刷题之爬楼梯(7/30)
- Coldfusion file read holes (CVE - 2010-2861)
- 验证整数输入
- 汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
- AI software development process in medical imaging field
- Arbitrum 专访 | L2 Summer, 脱颖而出的 Arbitrum 为开发者带来了什么?
- 直播预告 | KDD2022博士论文奖冠亚军对话
- Unity界面总体介绍
- Force buckled brush the stairs (7/30)
猜你喜欢

12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche

Path and the largest

Nacos

力扣刷题之有效的正方形(每日一题7/29)

最大路径和
![CV-Model [3]: MobileNet v2](/img/c7/1155a1f610110724c67a3b7557ef28.jpg)
CV-Model [3]: MobileNet v2

Static routing + PAT + static NAT (explanation + experiment)

用户交互+格式化输出

STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道

Detailed explanation of STP election (step + case)
随机推荐
multiplayer-hlap 包有问题,无法升级的解决方案
Face detection based on opencv
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
【AcWing 第62场周赛】
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules
图像处理技术的心酸史
全流程调度——MySQL与Sqoop
How to expose Prometheus metrics in go programs
C language applet -- common classic practice questions
【AcWing 62nd Weekly Game】
ShardingJDBC基本介绍
英特尔软硬优化,赋能东软加速智慧医疗时代到来
系统需求多变如何设计
项目开发软件目录结构规范
CMOS和TTL的区别?
Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
mysql view
Interprocess communication study notes
User interaction + formatted output
Mathematical Ideas in AI