当前位置: 首页 > news >正文

网站建设汇报评估wordpress播放m3u8

网站建设汇报评估,wordpress播放m3u8,首页设计的公司官网,网站怎么做认证吗题意#xff1a;给定一个字符串#xff0c;然后判断最小经过若干次交换然后使这个串变成一个回文串#xff08;每次可以交换相邻两位#xff09;。 思路#xff1a;贪心。如果一个串的奇数字母的个数为奇数个#xff0c;那么一定是不可能的。以开头和结尾作为两头不断枚举…题意给定一个字符串然后判断最小经过若干次交换然后使这个串变成一个回文串每次可以交换相邻两位。 思路贪心。如果一个串的奇数字母的个数为奇数个那么一定是不可能的。以开头和结尾作为两头不断枚举最小交换次数直到字符串的个数为2. code #include iostream #include cstdio #include cmath #include algorithm #include cstring #include sstream #include string #include vector #include list #include queue #include stack #include map #include set #include bitsetusing namespace std;typedef long long ll; typedef unsigned long long ull; typedef long double ld;const int INF0x3fffffff; const int inf-INF; const int N1000000; const int M2005; const int mod1000000007; const double piacos(-1.0);#define cls(x,c) memset(x,c,sizeof(x)) #define cpy(x,a) memcpy(x,a,sizeof(a)) #define ft(i,s,n) for (int is;in;i) #define frt(i,s,n) for (int is;in;i--) #define lson l,m,rt1 #define rson m1,r,rt1|1 #define lrt rt1 #define rrt rt1|1 #define middle int m(rl)1 #define lowbit(x) (x-x) #define pii pairint,int #define mk make_pair #define IN freopen(in.txt,r,stdin); #define OUT freopen(out.txt,w,stdout);char s[150]; int cnt[30]; int main() {int T;scanf(%d,T);while (T--){scanf(%s,s);cls(cnt,0);int l0,rstrlen(s)-1,k0,ans0,m-1;ft(i,l,r){if (cnt[s[i]-a]) cnt[s[i]-a]--,k--;else cnt[s[i]-a],k;}if (k1) {puts(Impossible);continue;}if (k1) ft(i,0,26) if(cnt[i]1) mi;while(lr){if (s[l]s[r]) {l,r--;continue;}if (s[l]-am) {ft(i,l1,r-1){if (s[i]s[r]){frt(j,i,l1) swap(s[j],s[j-1]),ans;r--,l;break;}}}else {frt(i,r-1,l1)if (s[i]s[l]){ft(j,i,r-1)swap(s[j],s[j1]),ans;r--,l;break;}}}printf(%d\n,ans);} }
http://www.pierceye.com/news/840088/

相关文章:

  • 广西网站建设工具网站推广方法主要有哪些
  • 源码购买网站郑州新一网站建设
  • 大学生网站设计论文范文某集团网站建设规划书
  • 温州哪里有网站建设深圳关键词首页排名
  • 做网站用什么面板好网站建设网站公司
  • 寻求网站建设技术网页升级访问永久你懂的
  • 做网站的公司有多少家无后台基础怎么建设网站
  • 在公司做网站是什么职位有链接的网站怎么做
  • 手机网站开发前台架构专业群建设网站
  • 做网站设计怎么样网站ui怎么做的
  • 企业网站用织梦好吗ui培训的课程都有哪些
  • 临沂专业网站建设公司哪家好做网站的照片要多大像素
  • 山东滕州做网站技术电话wordpress网页登陆
  • 做公司网站的费用flash交互网站页面切换制作
  • 网络推广渠道有哪些百度手机seo
  • 重庆专业网站建设公司哪家好seo的中文意思是什么
  • 做品牌折扣微信推广的网站网站换主机换域名
  • 营销型网站有哪些建设流程怎样制作免费的网站
  • 天津建设工程计价网站手工加工网
  • 温州做美食网站网站建设的方案模板下载
  • 如何快速网站备案以用户为中心 建设学校网站
  • 宣传型网站有哪些宁波建设信息港网站
  • php网站开发是做什么的phpcms v9企业网站模板(简洁利于优化)
  • 什么是网站和网页wordpress启用插件出错
  • asp网站制作工具怎么样做国际网站生意
  • 签订网站建设合同山东建设工程招标网官方网站
  • 迅速建设企业网站外贸网站服务器选择
  • 建设网站详细流程wordpress建站数据库
  • 贵阳建立网站聊城网站建设设计
  • 网站怎么设置关键词百度网址大全首页设为首页