Cod sursa(job #793242)

Utilizator mihaitsMihai Zavoian mihaits Data 2 octombrie 2012 13:16:47
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.43 kb
#include <fstream>
#include <iostream>
using namespace std;

int p, s = 1, i = 1, cs, j;

int main ( void )
{
	ifstream fin ( "fact.in" );
	ofstream fout ( "fact.out" );
	
	fin >> p;
	/*while ( i )
	{
		j = 0;
		s *= i;
		//s /= 1000000;
		//cout << s << '\n';
		cs = s;
		while ( cs % 10 == 0 )
		{
			j ++;
			cs /= 10;
		}
		if ( j >= p )
		{
			fout << i;
			break;
		}
		i ++;
	}*/
	fout << p * 5;
	
	fin.close();
	fout.close();
}