题解列表

筛选

字符统计——简单解法

摘要:解题思路:先把每个字符当做唯一出现,再除去相同字母的排列次数注意事项:在输入的时候,记录出现字符最多的次数,并将每个字符以及其次数用HashMap存储。再次遍历HashMap,将出现次数等于最多的加入……

求长方形面积

摘要:解题思路:首先,我们都知道长方形的周长和面积,周长:(a+b)*2,面积:a*b。注意事项:c:和S:要双引号参考代码:#include<iostream>using namespace std;in……

小白也能懂的入门代码

摘要:解题思路:注意事项:参考代码: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> #……

python——汽水瓶

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

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

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