Masala #VLAINDD12O

Xotira 16 MB Vaqt 100 ms Qiyinchiligi 10 %
14

  

Kamyob son

Sizga bitta N soni beriladi siz esa bu kamyob son yoki kamyob son emasligini isbotlang kamyob son deb : N sonning kvadrati va ikkilanganini ayirmasi 0 ga teng bo'lsa kamyob son deb ataladi.


Kiruvchi ma'lumotlar:

Kirish faylining yagona satrida N soni kiritiladi \((1 \le N \le10^{12})\)


Chiquvchi ma'lumotlar:

Agar son kamyob son bo'lsa "YES" deb aks holda "NO" deb chop eting


Misollar
# input.txt output.txt
1
1
NO
2
2
YES
Izoh:

1-test : 

1**2-(1+1) != 0

2-test: 

2**2-(2+2) == 0

O'ylab ko'ring masala oson.

Yechimini yuborish
Bu amalni bajarish uchun tizimga kiring, agar profilingiz bo'lmasa istalgan payt ro'yxatdan o'tishingiz mumkin