Cod sursa(job #410122)

Utilizator aurelian121bonte aurelian aurelian121 Data 4 martie 2010 09:31:44
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include <iostream>
#include <fstream>
using namespace std;
ofstream g("next.out");
int 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;
}