https://i2.wp.com/eblogarithm.com/wp-content/uploads/2017/07/Codeforces-Round-411-Div-2-problem-B-3palindrome-Solution-In-CC1.png?fit=640%2C360

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 19 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: