Cod sursa(job #37666)
Utilizator | Data | 25 martie 2007 11:43:58 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | fpc | Status | done |
Runda | preONI 2007, Runda 4, Clasa a 9-a si gimnaziu | Marime | 0.18 kb |
var n,d,r:int64;
begin
assign(input,'next.in');reset(input);
assign(output,'next.out');rewrite(output);
readln(n,d);
r:=n mod d;
writeln(n+(d-r));
close(input);close(output);
end.