From 6dbac2b2f66b34a8e2978494a6289a9a4879b965 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong <1040110848@qq.com> Date: Wed, 11 Nov 2020 21:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=BA=94=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E7=9A=84=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/homework5.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 source/_posts/homework5.md diff --git a/source/_posts/homework5.md b/source/_posts/homework5.md new file mode 100644 index 0000000..e87721d --- /dev/null +++ b/source/_posts/homework5.md @@ -0,0 +1,36 @@ +--- +title: 第五次作业(题目) +date: 2020-11-11 21:16:02 +mathjax: true +tags: +--- + +# P138-17 + +两个乒乓球队进行比赛,各出3人。甲队为A,B,C 3人,乙队为X,Y,Z 3人。已抽签决定比赛名单。有人向队员打听比赛的名单,A说他不和X比,C说他不和X,Z比,请编程序找出3对赛手的名单。 + +# 二分查找 + +对十个或以上的有序数进行二分查找。找到了,输出下标;找不到,将元素插入数组并保持数组有序。 + +# P165-3 + +求一个 $3 \times 3$ 的整型矩阵对角线元素之和/ + +# P165-6 + +输出以下的杨辉三角形(要求输出10行)。 + +``` +1 +1 1 +1 2 1 +1 3 3 1 +1 4 6 4 1 +1 5 10 10 5 1 +...... +``` + +# P165-10 + +有一篇文章,共有1行文字,每行有80个字符。要求分别统计出其中英文大写字母、小写字母、数字、空格以及其它字符的个数。