题解列表
编写题解 3015: 幂的末尾
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a>>b;for(int i……
自定义函数之数字后移
摘要:解题思路:注意事项:参考代码:def houyi(my_list,m,n): list1=[]+my_list for i in range(n): list1[i] = m……
编写题解 3018: 末两位数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a;for(int i=1;……
1106奖学金(sort排序)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;//这里注意一下书写的顺序,不然也会出现调用上的错误st……
1107纪念品分组(sort排序加指针移动)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int p1, int p2){ re……
1108守望者的逃离(dp动态规划)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long M;//魔法初值long long S;//出口距离long long T……
题解 1852: 求1+2+3+...+n的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll eee(ll a){ ll ……
2247: 蓝桥杯算法提高-输出三个整数的最大数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll myMax(ll a,ll b,l……
1109Hanoi双塔问题(利用一维数组存储结果)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long n; cin >> n; //设计一个数组,将一个……