题解列表

筛选

题目 1216: 成绩转换题解

摘要:参考代码:#include<iostream> using namespace std; int main(){     int score;     while(cin>>score){ ……

题目 1213: 幸运儿题解

摘要:参考代码:#include<iostream> using namespace std; int n; bool flag[100]; bool f(){     int num=0;  ……
优质题解

蓝桥杯2016年第七届真题-密码脱落(区间DP)

###题目大意给定一个字符串,最少插入多少的字符可以使得字符串变成`回文串`###解题思路思想:区间DP状态定义:$$f[l][r]$$表示把从$$l$$到$$r$$的字符串变为回文串的最少插入字符数状态转移:当$$s[l]==s[r]$$时,

2001看似很简单的三角形判断,其实很简单

摘要:解题思路:正常if判断a*a=b*b+c*c就行,但是有一点问题就是,要是顺序不对就会出错。比如 3 4 5 就是3*3+4*4==5*5   答案是正确的,但如果输入的是  5 3 4 就会5*5+……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    string s;    getline(cin,s)……

2895: 反反复复

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,len,hang,lie,num=0; int i,j; ……

编写题解 2912: 最长平台

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int findLongestPlateau(int arr[], int……