题解列表

筛选

核电站问题

摘要:解题思路:注意事项:参考代码:try:    while True:        n=int(input())        lis = [1,2,4,7]        for i in rang……

1027 题解

摘要:参考代码:#include<iostream> using namespace std; int add(int a,int b,int c) { if(a>b) { while(a%b!……

暴力算法c语言

摘要:普通的for循环 #include int isPrime(int n) { int i; int t=sqrt(n); ……

选择排序法

摘要:解题思路:一共输入十个数,用数组进行保存,再进行选择排序;注意事项:参考代码:#include<stdio.h>int main(){    int a[10],i,j,t;    for(i=0;i……

字符统计-Java简单解决

摘要:# 解题思路: 首先求出最多的次数max,再对key集合遍历,拿出对应的次数,与最大次数**比较**,如果相等就存入List集合中,最后再对List集合排序即可。 ------------ ……