Ответы на вопрос:
program esep; var i,j,k,n,sum: integer; input,output: text; a: array[1..100] of integer; flag: boolean; begin flag: =false; assign(input,'d.in'); reset(input); readln(input,n); assign(output, 'd.out'); rewrite(output); writeln('input elements'); readln (n); for i: =1 to n do read(a[i]); for i: =1 to n do for j: =1 to n do for k: =1 to n do if (i< > j) and (j< > k) and (i< > k) then if a[i]+a[j]+a[k]=0 then begin writeln (output,'yes'); flag: =true; halt; end; if flag=false then writeln(output,'no'); close(input); close(output); end.
Популярно: Информатика
-
Sfdfgc19.11.2020 01:14
-
narminanarminaovsozg31.05.2022 06:27
-
voropaevaink16.01.2020 08:44
-
саша429014.12.2020 05:28
-
Spale4ik04.07.2020 10:41
-
Нолик2702.05.2023 09:33
-
Igorkhvan18.02.2020 17:08
-
abdulkhanaknie03.04.2023 08:53
-
НастяStar102.07.2020 01:23
-
violet7130.11.2020 15:06