Cod sursa(job #2439717)

Utilizator AndreiStrAndrei Stroici AndreiStr Data 16 iulie 2019 18:12:10
Problema Next Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.18 kb
#include <bits/stdc++.h>

using namespace std;
ifstream f("next.in");
ofstream g("next.out");
int n,d,r;

int main()
{
    f>>n>>d;
    r=n%d;
    g<<(n+d)-r;
    return 0;
}