Cod sursa(job #1002627)
Utilizator | Data | 28 septembrie 2013 12:45:09 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
ifstream f("next.in");
ofstream g("next.out");
long long n,d,r;
f>>n>>d;
r=n%d;
g<<n+d-r;
return 0;
}