题解列表

筛选

字符串连接

摘要:解题思路:注意事项:连接的时候可以用数组形式赋值也可以用指针形式赋值,但是其实最后可以加一个长度限制的判断参考代码:#include <stdio.h>#include <strin……

人口增长问题题解

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){……

乘方计算题解

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){……

3031:分解因数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int count=1;int fun(int num,int n){ for(int i=n;i……

优秀的拆分简单题解

摘要:解题思路:先找到小于等于n的最高2次幂,在找与其差值的2次幂,逐个输出即可。注意事项:1<<(power+1)=1*2的(power+1)次方参考代码:#include<stdio.……

c++的两种解法

摘要:方法1 if-else语句#include <iostream>using namespace std;int main() { int a; cin >> a; ……

2856: 潜伏者

摘要:参考代码:#include<stdio.h>int main(){ char before[100] = { 0 }; char after[100] = { 0 }; char ciph……