I need help= =
Posted by
vcvycy 20 Oct 2013 09:52
WA..
who can give some test cases?
#include<stdio.h>
#include<stdlib.h>
int main()
{
long long n,m;
scanf("%I64d",&n);
m=n*(n-3)/2;
if (n % 2==1)
printf("%I64d 0\n",m);
if (n % 2==0)
{
if (n==4)printf("0 2\n");
else
printf("%I64d %I64d\n",m,m);
}
system("pause");
return 0;
}
Edited by author 20.10.2013 09:53