Cod sursa(job #735335)
Utilizator | Data | 16 aprilie 2012 09:28:15 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include<fstream>
using namespace std;
int main()
{
ifstream fcin("next.in");
ofstream fcout("next.out");
long long n,d;
fcin>>n>>d;
fcout<<n+d-n%d;
return 0;
}