Cod sursa(job #2173225)
Utilizator | Data | 15 martie 2018 21:12:08 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include <bits/stdc++.h>
using namespace std;
int main()
{
ifstream fin("next.in");
ofstream fout("next.out");
unsigned long long n,m,ok=0;
fin>>n>>m;
while(ok==0){if(n%m==0){fout<<n,ok=1;}
n++;}
fin.close();
fout.close();
return 0;}