Cod sursa(job #667507)

Utilizator FlameingoAiordachioaei Marius Flameingo Data 23 ianuarie 2012 11:42:35
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.17 kb
#include<fstream>
using namespace std;
int main()
{
	ifstream g("next.in");ofstream h("next.out");
	unsigned long long n,d;
	g>>n>>d;
	for(n;n%d!=0;++n);
	h<<n;
}