Cod sursa(job #1001804)

Utilizator Gusti666Lucaciu Catalin Gusti666 Data 26 septembrie 2013 10:21:06
Problema Next Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.2 kb
#include <iostream>
#include <fstream>

using namespace std;
ifstream f("next.in");
ofstream g("next.out");
unsigned long long n,x;

int main()
{f>>n>>x;
g<<(n+x)-(n+x)%x;


    return 0;
}