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

7 Reasons This Viral Kitchen Gadgets Is Worth Every Single Penny

📢 As an Amazon Associate, I earn from qualifying purchases.If you had told me six months ago that a single purchase would change how...

Quantum Stocks Fall Tuesday as Rates Force Rotation: IonQ Down 6%, D-Wave Drops 6%, Rigetti Falls 5%

Emerging technology shares faced severe downward pressure on Tuesday as a sharp uptick in long-dated Treasury yields triggered an aggressive rotation across Wall Street....

We Tested Viral Kitchen Gadgets Here Is What You Must Know

📢 As an Amazon Associate, I earn from qualifying purchases.I stumbled across this while desperately trying to fix a recurring problem in my routine....

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!