题面
第 1 行输入一个正整数 n(1≤n≤20),第 2 行输入 n 个由一个空格分隔的整数,整数的绝对值不超 10<sup>8</sup>。
第 1 行以相反次序输出这 n 个数 (两个数之间由一个空格分隔,最后一个数后没有空格),第 2 行输出这 n 个整数的和及其平均值 (相互之间由一个空格分隔,均值四舍五入保留 2 位小数)。
输入格式
<font color="#000000"><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 第 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">1</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 行输入一个正整数 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">n(1</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: ">≤</span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">n</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: ">≤</span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">20)</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: ">,第 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">2</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 行输入 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">n</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 个由一个空格分隔的整数,整数的绝对值不超 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">10<sup>8</sup></span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: ">。</span></font>
输出格式
<font color="#000000"><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 第 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">1</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 行以相反次序输出这 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">n</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 个数 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">(</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 两个数之间由一个空格分隔,最后一个数后没有空格 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">)。</span>
<span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 第 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">2</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 行输出这 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">n</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 个整数的和及其平均值 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">(</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 相互之间由一个空格分隔 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">,</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 均值四舍五入保留 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-family: ; font-size: 14pt">2</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-family: 宋体 ; font-size: 14pt; mso-ascii-font-family: "> 位小数)。</span></font>
样例
输入
10 12 90 78 34 -100 25 9 -55 9 1
输出
1 9 -55 9 25 -100 34 78 90 12 103 10.30