View Code of Problem 87

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,min,max;
    scanf("%d",&a);
    if(a % 2 != 0){
        printf("0 0");
    }
    else{
        max = a /2;
        min = a/4+a % 4/2;
        printf("%d %d",min,max);
    }
    return 0;
}

Double click to view unformatted code.


Back to problem 87