Pages

Wednesday 3 October 2012

UVA - 11296 - Counting Solutions to an Integral Equation (C Solution)

#include <stdio.h>

int main()
{
        long long n;
        while(scanf("%lld",&n)==1){
           printf("%lld\n",(n/2+2)*(n/2+1)/2);
        }
    return 0;
}

No comments:

Post a Comment