[编程入门]筛选N以内的素数-题解(C语言代码) 摘要:解题思路:这道题解法呢,首先我们要进行两次循环,内层用于判断数字是否为素数,外层来为内层提供数字,懂吧,不懂来看代码吧注意事项:无参考代码#include <stdio.h>int main() { …… 题解列表 2020年08月12日 0 点赞 2 评论 1580 浏览 评分:9.5
P1050-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int dp[2002][2002]={0};//dp…… 题解列表 2020年08月18日 0 点赞 0 评论 892 浏览 评分:9.5
蓝桥杯历届试题-回文数字-题解(C++代码)详细注释 摘要:解题思路: 遍历10000 - 1000000,当这个数是回文数并且各个位数之和为n,输出 并标记, 如果没被标记,输出-1注意事项:参考代码:#include <bits/stdc++.…… 题解列表 2020年08月22日 0 点赞 1 评论 1160 浏览 评分:9.5
[递归]母牛的故事-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int ageMap[58]; //定义一个缓存用于存储已经计算过的值了long lon…… 题解列表 2020年08月23日 0 点赞 0 评论 880 浏览 评分:9.5
汽水瓶-题解(C++代码) 摘要:```cpp #include using namespace std ; int a[10] ; int f(int x) { int n, m = 0, sum = 0 ; wh…… 题解列表 2020年08月24日 0 点赞 0 评论 569 浏览 评分:9.5
求平方和-题解(C语言代码) 摘要:解题思路:平方可想到用这2种方法:直接计算平方或用pow()函数注意事项:如果用pow()记得加入头文件math.h,但该题直接计算即可。参考代码:#include<stdio.h>int main(…… 题解列表 2020年08月28日 0 点赞 0 评论 1226 浏览 评分:9.5
素数求和-题解(C语言代码) 摘要:解题思路:比较简单,直接看题解。参考代码:#include <stdio.h> #include <math.h> typedef long long LL; int prime(int n) …… 题解列表 2020年08月29日 0 点赞 0 评论 1147 浏览 评分:9.5
[编程入门]数字逆序输出-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c,d; cin>>a; b=a%10; c=a/1…… 题解列表 2020年09月06日 0 点赞 3 评论 618 浏览 评分:9.5
蓝桥杯2019年第十届真题-修改数组-题解(Java代码) 摘要: import java.util.Scanner; public class Main { static int[] a1 = new int[1000010…… 题解列表 2020年09月08日 0 点赞 1 评论 1047 浏览 评分:9.5
[编程入门]猴子吃桃的问题-题解(C语言代码) 摘要:```c #include int main(){ int N,sum=1,i=0; scanf("%d",&N);//输入共吃了多少天。 for(i=N;i>1;i--) sum=(su…… 题解列表 2020年09月08日 0 点赞 0 评论 549 浏览 评分:9.5