Cod sursa(job #871851)
Utilizator | Data | 5 februarie 2013 13:34:27 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<fstream>
#include<math.h>
using namespace std;
int main()
{
ifstream f("next.in");
ofstream g("next.out");
long long n,d;
f>>n>>d;
int m= (ceil((float)n/d))*d;
g<<m<<endl;
f.close();
g.close();
return 0;
}