Cod sursa(job #903478)
Utilizator | Data | 1 martie 2013 21:11:32 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("next.in");
ofstream g("next.out");
long long unsigned n,d;
int main()
{
f>>n>>d;
g<<(n/d+1)*d;
return 0;
}