Cod sursa(job #1523897)
Utilizator | Data | 13 noiembrie 2015 14:12:22 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("next.in");
ofstream fout("next.out");
long long n, d;
int main()
{
fin>>n>>d;
fout<<d*(1+n/d);
return 0;
}