Download presentation

Presentation is loading. Please wait.

Published byDeborah Beddingfield Modified about 1 year ago

1
ІІ етап Всеукраїнської олімпіади з інформатики

2
Задача 1

3
program z1; var min, N,R,S:longint; f1,f2:text; begin assign(f1, 'a1.in'); reset(f1); assign(f2, 'a1.out'); rewrite(f2); read(f1, N,R,S); min:=N; if R

4
Задача 3

5
program z1; var a,b,c,d,t1,t2,n:longint; f1,f2:text; begin assign(f1, 'a3.in'); reset(f1); assign(f2, ‘a3.out'); rewrite(f2); while not eof(f1) do begin read(f1, n); a:=n div 10; b:=n mod 10; t1:=n+a; if n mod 9=0 then begin c:=(a*10+10) div 10; t2:=n+c; write(f2, t1, ' '); writeln(f2, t2); end else writeln(f2, t1); end; close(f1); close(f2); end.

6
Задача 4

7
program z1; var x1,y1,x2,y2,x3,y3:integer;f1,f2:text; begin assign(f1,‘a4.in'); reset(f1); assign(f2,‘a4.out'); rewrite(f2); while not eof(f1) do begin readln(f1,x1,y1,x2,y2,x3,y3); if (x1-x2)*(y3-y2)=(x3-x2)*(y1-y2) then writeln(f2,'yes') else writeln(f2,'no'); end; close(f1); close(f2); end.

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google