Cod sursa(job #1002625)
| Utilizator | Data | 28 septembrie 2013 12:43:20 | |
|---|---|---|---|
| Problema | Next | Scor | 0 |
| 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");
int n,d,r;
f>>n>>d;
r=n%d;
g<<n+d-r;
return 0;
}
