View Code of Problem 31

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main (){
	ll n;
	while(~scanf("%lld", &n)){
		n = 23+3*5*7*(n-1);
		printf("%lld\n", n);
	}

	return 0;
}

Double click to view unformatted code.


Back to problem 31