Cod sursa(job #2633299)

Utilizator luiz_felipeLuiz Felipe luiz_felipe Data 7 iulie 2020 01:08:18
Problema Next Scor 10
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.2 kb
#include <fstream>
using namespace std;
long long m,n,d;
ifstream f("next.in");
ofstream g("next.out");
int main()
{
    f>>n>>d;
    m=n-n%d;
    m+=d;
    g<<m;
    f.close(); g.close();
}