Cod sursa(job #2311536)
| Utilizator | Data | 3 ianuarie 2019 13:10:13 | |
|---|---|---|---|
| Problema | Next | Scor | 10 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream>
using namespace std;
ifstream f("next.in");
ofstream g("next.out");
unsigned long long n,x,d;
int main()
{f>>n>>d;
x=n+(d-n%d);
g<<x;
return 0;
}
