计算质因子 (C++代码)100以内质数直接打表就好了 摘要:解题思路:100以内质数直接打表就好了然后判断并输出注意事项:数字之间有空格参考代码:#include<stdio.h> int main() { int a[28] = {2, 3,…… 题解列表 2017年07月29日 1 点赞 0 评论 1598 浏览 评分:5.4
简单的a+b (C++语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b…… 题解列表 2017年09月06日 0 点赞 0 评论 1235 浏览 评分:5.4
平方和与立方和 (C++代码) 摘要:解题思路:用两个双向队列存储数据注意事项:参考代码:#include <iostream>#include <deque>#include <algorithm>#include <numeric>#…… 题解列表 2018年01月14日 0 点赞 0 评论 2251 浏览 评分:5.4
求1+2+3+...+n的值 (C++代码) 摘要:解题思路:注意事项:累加超时参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n…… 题解列表 2018年06月14日 0 点赞 0 评论 2209 浏览 评分:5.4
数组排序 (C++代码)可AC 摘要:解题思路:我的解题思路比较简单,就是建立两个数组数组A和数组B,数组B用来保存数组A的值对数组B的值进行快排,这样子能让数组B进行从小到大进行排序,同时也就是对应数组A下标例如数组a[4]={0,3,…… 题解列表 2018年08月12日 7 点赞 0 评论 1722 浏览 评分:5.4
贷款计算 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ double c,a,b; int n; scanf("%lf%lf%lf",&a,&b,&…… 题解列表 2019年01月08日 0 点赞 0 评论 1297 浏览 评分:5.4
去括号 (C++代码)C11,cout..R用法,笑死我了要 摘要:解题思路: 直接这样输出如何?参考代码:#include<bits/stdc++.h> using namespace std; int main(){ cout<<R"(1+1 1…… 题解列表 2019年01月10日 1 点赞 0 评论 9662 浏览 评分:5.4
[编程入门]电报加密 (C语言代码) 摘要:题目描述输入一行电报文字,将字母变成其下一字母(如’a’变成’b’……’z’变成’a’其它字符不变)。输入一行字符输出加密处理后的字符样例输入a b样例输出b c解题思路:注意事项:参考代码:#inc…… 题解列表 2019年05月06日 0 点赞 0 评论 1454 浏览 评分:5.4
【回文数(二)】-题解(C/C++语言代码)(简单易懂) 摘要:#### 解题思路: 将相加完之后的数判断是否为回文数时,判断反转与原数相等即可即可 在该题中用到了strtol函数,其中endptr 为 0,则表示该参数无效,或不使用该参数。 以下链接介…… 题解列表 2020年02月04日 0 点赞 0 评论 719 浏览 评分:5.4
蓝桥杯算法训练VIP-整数平均值-题解(C语言代码) 摘要:#include int qiuhe(int *p,int n) { int sum = 0; int i; for (i=0; i < n; i++) { sum += *…… 题解列表 2020年04月13日 0 点赞 1 评论 1241 浏览 评分:5.4