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
Discussion of Problem
1787
. Turn for MEGA
Что неверно?
Posted by
Dmitry_Terenichev
28 Feb 2017 20:58
var k,n,i,q,w:integer;
begin
read(k,n);
for i:=1 to n do begin
read(q);
w:=w+q;
end;
if k*n>=w then writeln(0) else writeln(w-k*n);
end.
Re: Что неверно?
Posted by
CodeNames``
24 Nov 2017 19:35
Такая же проблема
© 2000–2024
Timus Online Judge Team
. All rights reserved.