Cod sursa(job #410125)

Utilizator aurelian121bonte aurelian aurelian121 Data 4 martie 2010 09:35:22
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <iostream>
#include <fstream>
using namespace std;
ofstream g("next.out");
long long n,m,d,p;
int main()
{
	ifstream f("next.in");
	f>>n>>d;
	p=n/d;		
	m=(p+1)*d;
	g<<m;
	g.close();
	f.close();
	return 0;
}