Cod sursa(job #1019746)
Utilizator | Data | 31 octombrie 2013 21:13:54 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<fstream>
using namespace std;
int main()
{
long n,d,m;
ifstream f("next.in", ios::in);
ofstream g("next.out", ios::out);
f>>n;
f>>d;
m=n;
while(m%d!=0)
m++;
g<<m;
return 0;}