AOJ 0057 The Number of Area

404 Not Found

#include <cstdio>

int main()
{
	int n;
	while(~scanf("%d\n", &n))
		printf("%d\n", (n * n + n + 2) / 2);
	return 0;
}

just implemented a formula that I found on the internet