Code Baif 29
Code Baif 29
h>
#include<string.h>
struct oto {
int BKS;
int TT;
char CTy;
};
scanf("%d",&ot->BKS);
getchar();
scanf("%d",&ot->TT);
getchar();
scanf(" %c",&ot->CTy);
int i,dem=0;
for(i=0;i<n;++i){
dem++;
int i,j;
for(i=0;i<n-1;++i){
for(j=i+1;j<n;++j){
if(ot[j].TT>ot[i].TT){
ot[i]=ot[j];
ot[j]=tg;
void main(){
int n,i,dem=0;
scanf("%d",&n);
getchar();
for(i=0;i<n;++i){
nhapthongtin(&ot[i]);
otocuaBcoBKSchiahetcho3(ot,n);
baotocotrongtainhonhat(ot,n);