题解列表

筛选

真 小白做法

摘要:解题思路:注意事项:参考代码:int x,i=0;    scanf("%d",&x);    int y=x;    while(x!=0){        x/=10;        i++;  ……

利用strlen函数即可求解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun1(char  charater[100]){    int i;    i=str……

完全背包问题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxs 110#define maxb 10#define max……

蓝桥杯算法训练VIP-拦截导弹

摘要:解题思路:注意事项:参考代码:public class Tdd {     public static void main(String[] args) {         Scanner sc ……

三个数排序

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <algorithm> int main(){    int a,b,c; ……

用了数组的知识

摘要:解题思路:定义一个数组分别存储每次输入的值并求和,存储在sum变量里最后除以输入的个数得到平均值。注意事项:需要一个临时变量m来接收n的值,因为此处使用了while循环将n的值变化,所以需要提前准备一……