Cod sursa(job #1376875)

Utilizator TimoteiCopaciu Timotei Timotei Data 5 martie 2015 19:17:07
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include <iostream>
#include<fstream>
using namespace std;
unsigned long long n,b,a;
int main()
{
    ifstream f("next.in");
    ofstream g("next.out");
    f>>n>>b;
    a=n/b;
    g<<b*(a+1);
    return 0;
}