Cod sursa(job #58685)

Utilizator gabitzish1Gabriel Bitis gabitzish1 Data 6 mai 2007 20:48:08
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<fstream.h>

long long n, k;

void citire()
{
  ifstream in("next.in");
  ofstream out("next.out");
  in>>n>>k;
  in.close();
  for (long long i=n; i<=n+k; i++)
    if (i%k==0) { out<<i; break;}
  out.close();
}

int main()
{
  citire();
  return 0;
}