博客
关于我
Reversing Encryption CodeForces - 999B(字符串翻转,reverse使用)
阅读量:247 次
发布时间:2019-03-01

本文共 271 字,大约阅读时间需要 1 分钟。

这题很水,记录一下reverse函数使用

#include 
#include
#include
#include
using namespace std;const int maxn=1e5+6;int main(){ int n; cin>>n; char ch[200]; cin>>ch; for(int i=1;i<=n;i++){ if(n%i==0){ reverse(ch,ch+i); } } cout<
<

 

转载地址:http://gunt.baihongyu.com/

你可能感兴趣的文章
mysql会员求积分_MySql-统计所有会员的最高前10次的积分和
查看>>
mysql会对联合索性排序优化_MySQL索引优化实战
查看>>
MySQL作为服务端的配置过程与实际案例
查看>>
Mysql使用命令行备份数据
查看>>