View Code of Problem 87

#include "stdio.h"
#include "string.h"
#include "ctype.h"
#include "math.h"
int a[1000000],b[1000000];
int main()
{
  int t,n,x,i,a;

  	scanf("%d",&a);
  	if(a%4==0)
  		printf("%d %d\n",a/4,a/2);
  	else if((a-2)%4==0)
  	   printf("%d %d\n",a/4+1,a/2);
  	 else
  	    printf("0 0\n");

    return 0;
}

Double click to view unformatted code.


Back to problem 87