Cod sursa(job #38544)
Utilizator | Data | 25 martie 2007 21:27:25 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<fstream>
using namespace std;
unsigned long long int n,d;
int main()
{
ifstream fin("next.in");
ofstream fout("next.out");
fin>>n>>d;
while(n%d != 0)
n+=1;
fout<<n;
fin.close();
fout.close();
return 0;
}