Tag: Codeforces Round #385 (Div. 2)
Codeforces Round #385 (Div....
#include<bits/stdc++.h>
using namespace std;
const int maxn=16,INF=0x3f3f3f3f;
char type;
int R,B;
char readchar() {
for(;;)...
Codeforces Round #385 (Div....
#include <limits.h>
#include <stdio.h>
#define N 1000
void query(int *ww, int *aa, int...
Codeforces Round #385 (Div....
#include <stdio.h>
#include <string.h>
int c, p, sz, gov;
int find_parent(int n)...
Codeforces Round #385 (Div....
#include <limits.h>
#include <stdio.h>
int main() {
int i, j, n, m,...
Codeforces Round #385 (Div....
#include<stdio.h>
#include<string.h>
void cycle(char s,int len)
{
char temp=s;
int i;
for(i=len-1;i>0;i--)
{
s=s;
}
s=temp;
}
int main(){
char s,orig;
int len,count=0;
scanf("%s",s);
len=strlen(s);
strcpy(orig,s);
do
{
cycle(s,len);
count++;
}
while(strcmp(orig,s));
printf("%dn",count);
return...