Given 2 numbers N,M. Print 'yes' if their product is a perfect square else print 'no'.
Given 2 numbers N,M. Print 'yes' if their product is a perfect square else print 'no'.
Sample Testcase :
INPUT
5 5
OUTPUT
Sample Testcase :
INPUT
5 5
OUTPUT
yes
const readline = require('readline');
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () => {
var data = userInput[0].split(" ");
var a = parseInt(data[0]);
var b= parseInt(data[1]);
if(a==b)
console.log('yes');
else
console.log('no')
});
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () => {
var data = userInput[0].split(" ");
var a = parseInt(data[0]);
var b= parseInt(data[1]);
if(a==b)
console.log('yes');
else
console.log('no')
});
Comments
Post a Comment