Cod sursa(job #993799)

Utilizator ionut95Mihai Alexandru ionut95 Data 4 septembrie 2013 14:38:09
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include <iostream>
#include<fstream>
using namespace std;

int main()
{
    ifstream f("next.in");
    ofstream g("next.out");
    long long n,d,m;
    f>>n>>d;
    m=n;
    while(m%d!=0)
        m++;
    g<<m;


    return 0;
}