ENG  RUSTimus 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

Accepted (sudo rm -rf)
Posted by Dan 1 Dec 2012 17:37
//SESC USU SUDO RM -RF

var a,b,c,d,i:integer;
begin
read(a,b);
d:=0;
for i:=1 to b do
begin
read(c);
if d<0 then d:=0;
d:=d-(a-c);
end;
if d > 0 then writeln (d) else writeln ('0');
end.

Edited by author 01.12.2012 17:40
Re: Accepted (sudo rm -rf)
Posted by BrainFuck 23 Feb 2013 22:41
Sudo -rm -rf Rulez By Me!