Triangular Number Check
A triangular number is of the form k(k+1)/2. Print YES if n is triangular, otherwise NO.
Constraints
1 <= n <= 10^18
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.