Cod sursa(job #38545)

Utilizator MirceampMuresan Mircea Paul Mirceamp Data 25 martie 2007 21:28:40
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<fstream>

using namespace std;

unsigned long 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;

}