题解列表

筛选

c++ 400ms以内

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; for (i……

二维数组直接解了

摘要:解题思路:二维数组,for循环嵌套注意事项:不要把值输错了,只能在for循环内进行,其实就是颠倒行 和 列参考代码:#include<iostream>using namespace st……

邪修xxxxxxxxxxxxxxxx

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb……

[编程入门]自定义函数之数字后移

摘要:解题思路:一种思路是向后移动,把最后一个数字备份,移动完num_number - 1次后把最后一个数赋值给第一个总共移动move_number次注意 if(move_numb……

求整数的和与均值

摘要:解题思路:注意事项:参考代码:total = 0arr = list(map(int,input().split()))if len(arr) != 1: for i in ……

Manacher算法O(n)时间复杂度求解回文子串

摘要:算法基础:**manacher算法**(叫**马拉车算法**太Low了😂)manacher算法是一个很质朴的算法,通俗来讲就是“**已掌握信息能用就用,不能用就中心扩展**”,我认为只要看透这个递……

T1244-和为给定数

摘要:#include<stdio.h>int main(){ int arr[100001]={0}; int n,m; int x; scanf("%d",&n)……