题解列表

筛选

1017: [编程入门]完数的判断-C语言

摘要:### 题目 一个数如果恰好等于不包含它本身所有因子之和,这个数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 编程序找出N之内的所有完数,并按下面格式输出其因子……

编写题解 1180: 不容易系列

摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n):     a=int(input())     y=3     for j in range(a……

编写题解 1173: 计算球体积

摘要:解题思路:注意事项:参考代码:while True:     try:         r=float(input())         print('%.3f'%((4/3)*……

解决栅格问题

摘要:解题思路:注意事项:注意高度或者宽度为零的时候参考代码:#include <stdio.h>#include <iostream>using namespace std;int main(){ int……

1172: 计算两点间的距离

摘要:解题思路:直角三角形,三条边的关系:两直边平方和等于斜边平方注意事项:参考代码:while True:     try:         x1,y1,x2,y2=map(int,input().s……

编写题解 1171: 蟠桃记

摘要:解题思路:注意事项:参考代码:while True:     try:         n=int(input())         ls=[1]         for i in&nb