Cod sursa(job #295902)

Utilizator funkydvdIancu David Traian funkydvd Data 3 aprilie 2009 19:22:12
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include<fstream>
using namespace std;
ifstream f1 ("next.in");
ofstream f2 ("next.out");
int main()
{
	long long n,d;
	f1>>n>>d;
	int r=n%d;
	r=d-r;
	n+=r;
	f2<<n;
	f1.close();
	f2.close();
	return 0;
}