Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- int main()
- {
- int all, yes, no;
- scanf("%d%d%d",&all,&yes,&no);
- double voted = yes+no;
- double pososto = voted/all*100;
- if (yes>no && pososto>=80) printf("1");
- else printf("-1");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement