题解列表

筛选

小白也能懂的入门代码

摘要:解题思路:注意事项:参考代码:for i in range(100,1000):    a,b,c=str(i)    if int(a)**3+int(b)**3+int(c)**3==int(i)……

第一个HelloWorld程序

摘要:解题思路:这题没什么好说的注意事项:输出时记得换行,输出时记得换行“ ”。参考代码:#include<bits/stdc++.h>using namespace std; int main(){   ……

Tetrahedrons and Spheres

摘要:#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <algorithm> #……

1037 宏定义的练习

摘要:解题思路:1.输入两个整数2.求两个整数相除的余数注意事项:参考代码:   a,b = map(int,input().split())                 print(a%b)……

python——汽水瓶

摘要:def aa(a):     sum = 0     while a > 1:         s = a%3            

1017: [编程入门]完数的判断(python代码)

摘要:解题思路:  1.输入N  2.用for循环,找出所有因子,并判断此数是否为完美数  3.输出N以内的完美数的所有因子注意事项:  每打印完一个完美数,需换行参考代码:N=int(input()) ……

投机取巧一下

摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。参考代码:print(1993)……

c语言迭代法求平方根

摘要:解题思路:迭代算法的基本思想是: 为求一个问题的解x,可由给定的一个初值x0,根据某一迭代公式得到一个新的值x1,这个新值x1比初值x0 更接近要求的值x;再以新值作为初值,即:x1→x0,重新按原来……