题解列表
只学第六章的菜鸟,数组还不会,学了3天
摘要:解题思路:非常基础,注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f; scanf("%d", &a); b=100000……
尼科彻斯定理(c++) 突出一个思路混乱
摘要:解题思路:主要是数学算法上有思路,就比较好办。注意事项:分为奇数和偶数,但都是以最小数为首项,以二为公差的等差数列。#includeusing namespace std;
int main()
……
字符串正反连接(c++)短小 好理解
摘要:```cpp
#include
#include
using namespace std;
int main()
{
string s, d;
cin >> s;
d = s;
re……
自我感觉较为简单的代码,容易理解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int zys(int n)//分解质因数 ,将结果分层次输出 { int i; printf("%d=",n);//输出题头 for……
蓝桥杯算法训练-二进制数数
摘要:解题思路:用栈转进制,然后传给数组,遍历数组,符合条件就用ans计数感觉我做的有些复杂了,虽然提交之后通过了,但过于复杂。进制这块还是掌握的太差了。参考代码:#include"iostream"
#……
通过遍历查重,直接赋0
摘要:解题思路:注意事项:用一个新的数组存更好。参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){int a……