#include <iostream>
using namespace std;
#define ll long long
#define ld long double
signed main(){
const ll n = 20;
ll a[n];
for(ll i = 0; i < n; i++)
cin >> a[i];
sort(a,a+n);
ll cur_place = 10;
for(ll i = 10; i < 20; i++){
cout << cur_place <<"th place reached: " << a[i] << " scores" << "\n";
cur_place--;
}
cur_place = 11;
for(ll i = 0; i < 10; i++){
cur_place++;
begin
setpencolor(clblack);
line(3+x,160,3+x,200); // зад
line(3+x,160,30+x,180);
line(3+x,200,88+x,205);
line(30+x,180,100+x,175);
line(125+x,176,170+x,200);
line(170+x,200,172+x,202);
line(172+x,202,170+x,204);
line(170+x,204,115+x,205);
line(120+x,195,85+x,255); //крыло
2line(85+x,255,75+x,258);
line(75+x,258,90+x,195);
line(95+x,175,105+x,125); // крыло
line(105+x,125,116+x,128);
line(125+x,175,116+x,128);
setpencolor(clblue); //пилот
floodfill(135+x,190,clred);
line(135+x,182,135+x,192);
line(135+x,192,158+x,194);
end;
var x:integer;
begin
lockdrawing;
for x:=1 to 640 do //движения
begin
clearwindow;
samolet(x);
sleep(10);
redraw end;end.
#include <iostream>
using namespace std;
#define ll long long
#define ld long double
signed main(){
const ll n = 20;
ll a[n];
for(ll i = 0; i < n; i++)
cin >> a[i];
sort(a,a+n);
ll cur_place = 10;
for(ll i = 10; i < 20; i++){
cout << cur_place <<"th place reached: " << a[i] << " scores" << "\n";
cur_place--;
}
cur_place = 11;
for(ll i = 0; i < 10; i++){
cout << cur_place <<"th place reached: " << a[i] << " scores" << "\n";
cur_place++;
}
}