Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through these links, eBlogarithm may earn a commission at no extra cost to you. Prices and availability are subject to change.
#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;
}
📦 Looking for Codeforces Round 411 Div Problem Palindrome? Check the best deals on Amazon.
🛒 Shop Codeforces Round 411 Div Problem Palindrome on Amazon
As an Amazon Associate, eBlogarithm earns from qualifying purchases. Prices and availability are subject to change.
Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through these links, eBlogarithm may earn a commission at no extra cost to you. Prices and availability are subject to change.
#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;
}
📦 Looking for Codeforces Round 411 Div Problem Palindrome? Check the best deals on Amazon.
🛒 Shop Codeforces Round 411 Div Problem Palindrome on Amazon
As an Amazon Associate, eBlogarithm earns from qualifying purchases. Prices and availability are subject to change.