-->
当前位置:首页 > 题库

题库 第642页

  • 最新
  • 浏览
  • 评论

编程题:reduce weight

Luz4年前 (2022-11-15)542
Tom wants to lose weight. He set himself a goal to lose weight, lose the specified weight within the specified number of…

编程题:Calculate ball volume

Luz4年前 (2022-11-15)390
Input the radius to calculate the volume of the ball. The ball volume formula is:$$\frac{4}{3}\pi{r^{3}}$$please use the…

编程题:The hypotenuse of a right triangle

Luz4年前 (2022-11-15)329
Input the two right sides(a and b)of a right triangle, and then output the length of its hypotenuse(c). Rright triangle:…

编程题:字符统计

Luz4年前 (2022-11-15)654
编写一个程序,从键盘接收一个字符串,完成对字符串中的字符出现的次数的统计。### 输入格式:键盘接收字符串,以回车符结束输入。要求全部是小写字符,中间不能出现空格等多余字符。### 输出格式:输出每个字符出现的次数,按字母表升序打印输出。#…

编程题:输出月份名(*)

Luz4年前 (2022-11-15)503
请编写程序,输入月份数,输出对应的英文月份名。<table><tr><td align="center"><b>月份数</b></td><td align="ce…

编程题:统计学生的总分

Luz4年前 (2022-11-15)494
输入学生的学号、姓名以及语文、数学、外语成绩,统计每个学生的总分,并按总分升序输出所有学生的学号、姓名和总分。### 输入格式:输入若干行数据,每一行数据分别为学号、姓名以及语文、数学、外语成绩,每项数据间用空格隔开最后一行输入"#”结束#…

编程题:数字金字塔的最大路径

Luz4年前 (2022-11-15)762
给定一个正整数n,以及形如以下的数字金字塔(这里n=5): 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5从金字塔的顶部向下直到底部,每个数据可以通过左下或右下到达下一层,这样到达底层可以有许多条路径,现在要…

主观题:数字金字塔的最大路径

Luz4年前 (2022-11-15)974
给定一个正整数n,以及形如以下的数字金字塔(这里n=5): 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 从金字塔的顶部向下直到底部,每个数据可以通过左下或右下到达下一层,这样到达底层可以有许多条路径,现在…

单选题:在Python中,以下表达式错误的是 ____

Luz4年前 (2022-11-14)605
在Python中,以下表达式错误的是( )。A.(A)a += 1B.if ( 0 == a) : print(a)C.a++D.a //= 2答案:C…

单选题:Given a finite set of elements S. The sequences `in` and `out`

Luz4年前 (2022-11-14)982
Given a finite set of elements S. The sequences in and out are permutations of S. Start from an empty stack ST, which…