Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int ia, ib, fa, fb;
- scanf("%d %d %d %d\n",&ia,&ib,&fa,&fb);
- int nclicks = 0;
- if ( ia == fa ) {
- if ( ib == fb ) {
- nclicks = 0;
- }
- else {
- nclicks = 2;
- }
- } else {
- if ( ib == fb ) {
- nclicks = 1;
- }
- else {
- nclicks = 1;
- }
- }
- println("%d\n",nclicks);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement