Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i, n, a, count;
- double check;
- while(scanf("%d", &n)!=EOF){
- count=0;
- for(i=1;i<=n;i++){
- scanf("%d", &a);
- if(a==1)
- count++;
- }
- check=(2*n)/3.0;
- count=count*1.0;
- if(count>=check)
- printf("impeachment\n");
- else
- printf("acusacao arquivada\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment