program prim;
uses crt;
var
a,b,r: integer;
begin
clrscr;
writeln ('ввести два числа');
readln (a,b);
if a>b then
begin
r:=a-b;
end
else
begin
r:=b-a;
end;
writeln ('r=', r:5);
readkey;
end.
Ответ:
Реализация с помощью встроенной функции сортировки sorted() на Python.
Объяснение:
my_dict = {'a':500, 'b':5874, 'c': 560,'d':400, 'e':5874, 'f': 20}
keys = sorted(my_dict, key=my_dict.get, reverse=True)[:3]
print(keys)
#include <iostream>
using namespace std;
int main() {
int n,j,mnt,mn,mx;
cout<<"n = "; cin>>n;
int arr[n];
cout<<"array: "; cin>>arr[0];
mn=arr[0]; mx=mn;
for (int i=1; i<n; i++) {
cin>>arr[i];
if (arr[i]<mn) mn=arr[i];
if (arr[i]>mx) mx=arr[i];
}
mnt=mn;
cout<<"j = "; cin>>j;
for (int i=2; i<=j; i++) {
mn=mx;
for (int k=0; k<n; k++)
if ((arr[k]>mnt) && (arr[k]<mn)) mn=arr[k];
mnt=mn;
}
cout<<mn<<endl;
system("pause");
return 0;
}
Ввод - вывод:
n = 10
array: 11 -5 15 -8 13 -10 19 36 5 9
j = 5
9
Ответ:
В большинстве случаев доклады и их планы в презентациях не используются.
Чаще всего на них показывают наглядные графики и 2-3 предложения к ним.
Я считаю, что вариант 4 будет правильным.