Cod sursa(job #1891488)

Utilizator Tapester15Burca Rafael Tapester15 Data 24 februarie 2017 08:16:30
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <bits/stdc++.h>

using namespace std;
ifstream f("next.in");
ofstream g("next.out");

long long n,d,i;

int main()
{
    f>>n>>d;
    for(i=n;; i++)
        if(i%d==0)
        {
            g<<i;
            break;
        }
    return 0;
}