Cod sursa(job #2171830)
Utilizator | Data | 15 martie 2018 13:43:42 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <bits/stdc++.h>
using namespace std;
long long v[3001];
ifstream fin("next.in");
ofstream fout("next.out");
int main()
{unsigned long long n,d,s;
fin>>n>>d;
fout<<1LL*((n/d+1)*d);
fin.close();
fout.close();
return 0;}