+ 51
[ ASSIGNMENT: ] Adam Number
Given a number n, write a program to check whether given number is Adam Number or Not ? Adam number is a number when reversed, the square of the number and the square of the reversed number should be numbers which are reverse of each other. For Example : (12)^2 = 144 (21)^2 = 441 144 is the reversed of 441 441 is the reversed of 144 So, 12 is an Adam number. HappyCodings!:-)
54 odpowiedzi
+ 30
Anatoli
Thank you very much for your support, ☺👍 as Ipang says, it's the right way to learn! 😉
Mistakes are part of our lives and we have to deal with them, but it's important that we strive to correct them.
Ipang thought that this was a serious error in the task, because I wrote it, 😔
but it was actually mistake in my task setting - textual!!!
Now is OK! 😊✔
Thank you once again for drawing attention. ☺🤘😄👍
+ 26
Danijel Challenge Adam Number
https://code.sololearn.com/c8bDwD8Z8876/?ref=app
+ 25
@Yemibk
Thanks for taking part ☺👍
Please,
Code Public!! 👍✔✔
+ 23
@Kinshuk Vasisht
It's okay, do not worry, 😉👍
it's happened, but we will correct everything we can. ☺
Thank you so much for pointing out this case! 😊👍
+ 22
@Arun
Thanks a lot for taking part ☺
Please,
Code Public! 👍✔✔
+ 22
@Kinshuk Vasisht
I used the search bar and I did not find this challenge, so I set it up!
Review my challenges and you'll see that I do not have duplicates, but I'll change the title now!
Thank you! 👍
+ 21
I apologize, I really did not notice such a Cardinal MISTAKE!!! 😔☡❓
This is where the reversed number is used, and the palindrome is something completely different, to which you have drawn my attention! 👈👍☺
Thank you very much for this, that you have pointed me to the mistake. 👍☺
Thanks a lot friend 🤗
&&
HappyCoding!! ☺🤘
I Apologise to EVERYONE! 👍
&&
I apologize for the [DUPLICATE] too! ☺
+ 20
@Full Gamer
It is Assigned!! 😉👍 I Set the Challenge in the Lessons Factory!! ☺
+ 20
@Oma Falk
You did a great job, and found a excellent property's of the Adam Number!! 😀 Super!! 😉🤘
Thanks a lot for that 😊
Thank you very much for support and participating!! ☺👍
+ 20
@Oma Falk
😀 Beautiful!! 😊👍👏👏👌
Thanks a lot ☺
+ 20
@Oma Falk
👍😄😅😂😂🤘😀
Thank you very much for support 😊
and nice words!! 🤗👍🤘😄😁
+ 18
ThisOne is for QuestionNinja Badge! 👍
https://code.sololearn.com/cGl2IHkT1Xpt/?ref=app
+ 18
Kaimi
Make your code PUBLIC ✔✔
Thanks 😉👍
👇👇👇 👉 Challenge By !! 👈 👇👇👇
https://www.sololearn.com/Discuss/1163384/?ref=app
https://www.sololearn.com/Discuss/634095/?ref=app
+ 17
@Ipang
Not Error, My Mistake!!
I wrote, in the task, palindrome number❓ a needs a Reversed number, because palindrome and reversed is NOT the same! 👍☺
Thanks a lot for support ☺👍
+ 12
@Danijel Ivanovic, no worries no one is perfect and even I made and still make serious mistakes. so don't loose any sleep over it Danijel.
@Ipang, if you read my previous post it should be very clear what a palindrome actually is. So it is actually very simple. A text form you should be able to read that word from left to right AND from right to left and still keep the same spelling and meaning.
Hope you get it, try to Google it, but try to keep all the fun about programming on SL. 😆😆😆😆
+ 10
My solution:
• One-liner
• No if statements
• No equality operators
• 123 bytes
https://code.sololearn.com/c26f9c16CQCP/?ref=app
+ 10
Some properties of Adam numbers:
- they have no other digits but 0,1,2,3
- they dont have more than one digit 3
- if they have a digit 3, they dont have a digit 2
- they dont have more than two digits 2
- if digit 3 is not first or last, the product of digits having the same distance to digit 3 will not be greater than zero
eg 131: surely no Adam 1*1 = 1
113001 : 0*1 , 0*1 ... might be
.... more will follow
+ 10
@Danijel Ivanovic, A palindrome is a bumber or word that spells the same revwresd and still keeps the same meaning like :
The number 1221 palindrome is still 1221if you reverse it.
In letters dad is a palindrome because when you read it from left to right or from right to left it spells the same and has the same meaning. Hope ypu have a clear pucture what a palindrome actually is. Goodluck and a lot of fun....☺☺😊😊😆😆