题解列表

筛选

Hanoi双塔问题

摘要:解题思路:高精度 2 * (2 ^ n - 1)注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const i……

计算2的N次方

摘要:解题思路:高精度乘法注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e3……

三个字符串的排序,使用选择排序

摘要:解题思路: 输入三个字符串,并存入一个数组中,对该数组元素进行选择排序。注意事项:无参考代码:#include<iostream> using namespace std; #include<st……

1108: 守望者的逃离 贪心

摘要:解题思路:贪心注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m,s,……

最暴力的写法

摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<=n;i……

辗转相除最终归纳!

摘要:1.c++写#include<bits/stdc++.h> using namespace std; int _gcd(int a,int b) {     while(b!=0)//可以简写……

Jam的计数法C++

摘要:解题思路:  如果字符串的第一个字母已经是最大可能的字母退出循环;否则从最后一个字母开始遍历, 如果当前字母已经是最大可能字母, 退出循环; 否则, 当前字母加 1, 该字母之后的每一个字母,依据当前……