Cod sursa(job #257455)
Utilizator | Data | 13 februarie 2009 12:52:57 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<fstream>
using namespace std;
ifstream f1 ("next.in");
ofstream f2 ("next.out");
int main()
{
int n,d;
f1>>n>>d;
while (n%d) n++;
f2<<n;
f1.close();
f2.close();
return 0;
}