Codeforces Round #516 (Div. 2,C. Oh Those Palindromes(思维水题)

题目链接:http://codeforces.com/contest/1064/problem/C

#include
using namespace std;

#define debug puts("YES");
#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)
#define read(x,y) scanf("%d%d",&x,&y)
#define ll long long

#define lrt int l,int r,int rt
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define root l,r,rt
const int  maxn =2e3+5;
const int mod=1e9+7;
const int ub=1e6;
ll powmod(ll x,ll y){ll t; for(t=1;y;y>>=1,x=x*x%mod) if(y&1) t=t*x%mod; return t;}
ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}

int n;
int tb[100005];
string s;

int main()
{
    cin>>n>>s;
    for(int i=0;i

 

你可能感兴趣的:(Codeforces习题集)