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
1638
. Bookworm
Nargiza Asqarova
test 10 -help!!!
[2] // Problem
1638. Bookworm
6 Dec 2011 18:13
var t,z,k:byte; a,b:1..100;
s:longint;
begin
read(t,z,a,b);
if (b>a) then begin
k:=b-a; s:=2*k*z+((k-1)*t); end;
if(a>b) then begin k:=a-b; s:=(((2*k)+1)*z+(k+1)*t-1); end;
write(s);end.
DILSHOD7775
Re: test 10 -help!!!
// Problem
1638. Bookworm
7 Dec 2011 14:05
tushunarli qip o'zbechasini yozin
Sunnat
hojiyevsunatullo_1991@mail.ru
// Problem
1638. Bookworm
7 Dec 2011 16:42
a=b ga etibor bering
© 2000–2026
Timus Online Judge Team
. All rights reserved.