Cod sursa(job #2661722)
Utilizator | Data | 22 octombrie 2020 16:50:50 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <fstream>
using namespace std;
ifstream fin("next.in");
ofstream fout("next.out");
int main()
{
int n,d,c,m;
fin>>n>>d;
c=n/d;
m=(c+1)*d;
fout<<m;
fin.close();
fout.close();
return 0;
}