View Code of Problem 87

#include<stdio.h>
#include<string.h>
#include<math.h>

int main(){

	int t;
	scanf("%d",&t);
	if(t>32768||t%2!=0)return 0;
	int a=t;
	if(a%4==0){t=t/4;}
	else  t=t/4+1;
		
	
	printf("%d ",t);
	printf("%d",a/2);


}

Double click to view unformatted code.


Back to problem 87