Logo
(追記) (追記ここまで)

6975번 - Deficient, Perfect, and Abundant 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB113857052249.432%

문제

Write a program that repeatedly reads a positive integer, determines if the integer is deficient, perfect, or abundant, and outputs the number along with its classification.

A positive integer, n, is said to be perfect if the sum of its proper divisors equals the number itself. (Proper divisors include 1 but not the number itself.) If this sum is less that n, the number is deficient, and if the sum is greater than n, the number is abundant.

입력

The input starts with the number of integers that follow. For each of the following integers, your program should output the classification, as given below. You may assume that the input integers are greater than 1 and less than 32500.

출력

제한

예제 입력 1

3
4
6
12

예제 출력 1

4 is a deficient number.
6 is a perfect number.
12 is an abundant number.

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 1996 > CCC 1996 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /