Cod sursa(job #46345)
Utilizator | Data | 2 aprilie 2007 16:16:58 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.16 kb |
#include <fstream.h>
int main()
{long long unsigned int n,d;
ifstream f("next.in");
ofstream g("next.out");
f>>n>>d;
while (n%d!=0) n++;
g<<n;return 0;}