Codeforces Round #384 (Div. 2), problem: (A) Vladik and flights Solution in C/C++

#include<stdio.h>
int main()
{
int i,j,n,a,b;
char s[100003];
scanf("%d%d%d",&n,&a,&b);
scanf("%s",s);
if(s[a-1]==s[b-1])
{
printf("0");
}
else
printf("1");
return 0;
}
#include<stdio.h>
int main()
{
int i,j,n,a,b;
char s[100003];
scanf("%d%d%d",&n,&a,&b);
scanf("%s",s);
if(s[a-1]==s[b-1])
{
printf("0");
}
else
printf("1");
return 0;
}

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

Rob Schneider leans on faith, holds hope for reconciliation with estranged daughter Elle King

Actor and comedian Rob Schneider is opening up about his spiritual journey, expressing profound hope for a future reconciliation with his estranged daughter, singer-songwriter...

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

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

Do crabs foam at the mouth?

If you have ever spent time exploring coastal shores, tide pools, or beaches, you may have encountered a crab producing a thick cluster of...

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!