Cod sursa(job #1376869)
Utilizator | Data | 5 martie 2015 19:16:23 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <iostream>
#include<fstream>
using namespace std;
int 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;
}