View Code of Problem 31

#include<bits/stdc++.h>
using namespace std;

int main() {

	long long k;
	while(cin>>k){
		long long ans=23+(3*5*7*(k-1));
		cout<<ans<<endl; 
	}
	
	
	return 0;
}

Double click to view unformatted code.


Back to problem 31