Cod sursa(job #2047263)

Utilizator AndreiTudorAndrei Tudor AndreiTudor Data 24 octombrie 2017 18:06:30
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include <iostream>
#include <fstream>

using namespace std;
int n,d;
int main()
{
    ifstream fin("next.in");
    ofstream fout("next.out");
    fin>>n>>d;
    fout<<(n/d+1)*d;
    fin.close();
    fout.close();
    return 0;
}