题解列表
2117 车厢重组简单题解
摘要:解题思路:旋转次数看作是逆序对 每次交换两个相邻的数,只减少一个逆序对,把所有逆序对都消掉,就要交换(逆序对数量)次注意事项:参考代码:#include<bits/stdc++.h&……
蓝桥杯2023年第十四届省赛真题-子串简写(解释的比较清楚)
摘要:```cpp#includeusing namespace std;const long N = 5e5+5;int main(){ long ans=0; long k;ci……
1118: Tom数(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){charstr[10……
1094: 字符串的输入输出处理(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){intN;&nb……
速度更快,思路更简单的贪心算法
摘要:解题思路:速度更快,思路更简单的贪心算法注意事项:参考代码:#include<iostream>#include<algorithm>#include<vector>……
Python简单思路,小学都能看懂
摘要:```pythonday = int(input())coin = 0k = 0 #整段天数total = 0while total +(k + 1) ……
###简单办法###
摘要:解题思路:注意事项:取前面十个字符参考代码:data=input()[:10]alpha=digit=oth=0for i in data: if i.isalpha(): ……
replace替换来实现
摘要:解题思路:注意事项:参考代码:x=int(input())print(oct(x).replace('o', ''),x,hex(x))……
###傻瓜办法###
摘要:解题思路:注意事项:参考代码:n=int(input())data=[]for _ in range(n): data.append(list(map(int,input()……