From 2ca580447f569d0c0549178845619ac8568f108a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=90=E7=91=9E=E6=96=87666?= <13673809+crw04071@user.noreply.gitee.com> Date: Tue, 19 Dec 2023 11:39:13 +0000 Subject: [PATCH] update report2.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 成瑞文666 <13673809+crw04071@user.noreply.gitee.com> --- report2.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/report2.md b/report2.md index ed607ee..839a8ed 100644 --- a/report2.md +++ b/report2.md @@ -20,21 +20,84 @@ -## 问题1: - +## ### 1. 问题陈述 +整数的特殊性质 +### 2. 输入、输出描述 +给定一个正整数 n,判断这个数是否具一系列特殊性质,如:奇数(odd number)、偶数(even number)、素数(prime number)、完数(perfect number)、回文数(palindrome number)和水仙花数(narcissistic number)。 -### 2. 输入、输出描述 +### 3. 演算示例 +输入 1: +1 -### 3. 演算示例 +输出 1: + +odd = YES +even = NO +prime = NO +perfect = NO +palindrome = YES +narcissistic = NO + +输入 2: + +、2 + +输出 2: + +odd = NO +even = YES +prime = YES +perfect = NO +palindrome = YES +narcissistic = NO + +输入 3: + +6 + +输出 3: + +odd = NO +even = YES +prime = NO +perfect = YES +palindrome = YES +narcissistic = NO + +输入 4: + +121 + + +输出 4: + +odd = YES +even = NO +prime = NO +perfect = NO +palindrome = YES +narcissistic = NO + +输入 5: + +153 + +输出 5: +odd = YES +even = NO +prime = NO +perfect = NO +palindrome = NO +narcissistic = YES ### 4. 算法设计 -- Gitee