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

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...

Extra support arrives as Ohakune in race to restore water supply

Efforts to restore the main municipal water network in Ohakune have escalated significantly as specialist repair crews from across New Zealand arrive to assist...

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!