Codeforces Round #411 (Div. 2), problem: (B) 3-palindrome Solution In C/C++

#include <cstdio>
int n;
int main (){
scanf(“%d”, &n);
for (int i = 0; i < n; i++)
printf(“%c”, i % 4 < 2 ? ‘a’ : ‘b’);
printf(“\n”);
return 0;
}

(Visited 36 times, 1 visits today)

About the Author:

Leave A Comment