Cod sursa(job #2171818)
| Utilizator | Data | 15 martie 2018 13:41:14 | |
|---|---|---|---|
| Problema | Next | Scor | 10 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.23 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<<(n/d+1)*d;
fin.close();
fout.close();
return 0;}
