Cod sursa(job #257458)
| Utilizator | Data | 13 februarie 2009 12:55:37 | |
|---|---|---|---|
| Problema | Next | Scor | 10 |
| 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()
{
long long n,d;
f1>>n>>d;
while (n%d) n++;
f2<<n;
f1.close();
f2.close();
return 0;
}
