ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Common Board
what's wrong ?!?! it's so simple
Posted by
uuuuuuu
15 Mar 2003 18:41
var
wz,wpop,n,dl,ile:longint;
begin
readln(n,dl);
if n>=dl then
begin
wz:=(n div dl)*n;
ile:=(n div dl);
wpop:=(n mod dl)*ile
end;
writeln(wz+wpop)
end.
© 2000–2026
Timus Online Judge Team
. All rights reserved.