题解列表

筛选

2581: 蓝桥杯2020年第十一届省赛真题-字符串编码C++

摘要:解题思路:STL大法好,用string存储字符串,利用贪心的思路,每次尽量让输出的字母字典排序更高。首先用string类存储字符串。每次输出前先判断字符串前两位数字是否在[1,26]的区间中(1)不在……

Hello,world!

摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for……

周期计算距离

摘要:```python m, n = map(int, input().split()) s = 0 for i in range(1, n + 1): s += m + m / 2 #……

不要理解错题目,其实很简单

摘要:解题思路:注意事项:                                   题目无需输入与输出要在同一行,且目前无法完成退行操作!参考代码:#include<stdio.h>int ma……

冒泡,最不合适的排序算法

摘要:解题思路:冒泡注意事项:比较烦参考代码:#include<stdio.h>int main(){ int arr[3]; int i,j,temp; for(i=0;i<3;i++){ scanf(……

数的划分c++

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>……