View Code of Problem 31

#include<string.h>
#include<math.h>
#include<stdio.h>
#include<ctype.h>
int main()
{
	int i;
	long long int k;
	while(scanf("%lld",&k)!=EOF)
	{
		if(k==1) k=23;
		else k=23+3*5*7*(k-1);
		printf("%lld\n",k);
	}
	return 0;
 } 

Double click to view unformatted code.


Back to problem 31