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;
}

#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;
}

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

We Tested Viral Kitchen Gadgets Here Is What You Must Know

📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...

How old is a 80 pound blue catfish?

Unveiling the Secrets Behind the Age of an 80-Pound Blue Catfish Catching a massive river monster is the ultimate dream for many freshwater anglers across...

Stop Buying Cheap Alternatives This Viral Kitchen Gadgets Is the Real Deal

📢 As an Amazon Associate, I earn from qualifying purchases.After putting the Viral Kitchen Gadgets through a proper 30-day real-world test, I can tell...

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!