Số hoàn hảo

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 6: Số hoàn hảo

  • Mô tả: Số hoàn hảo là số có tổng các ước (trừ nó) bằng chính nó.
  • Yêu cầu: Kiểm tra \(N\) có là số hoàn hảo không.
  • Dữ liệu vào: \(1 \le N \le 10^8\).
  • Dữ liệu ra: YES/NO.
  • Ví dụ: Vào 6 -> Ra YES (1+2+3=6).

Comments

Most recent
Loading comments...

There are no comments at the moment.