题1. 三元组
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
const int N=10010;
struct data{
int x;
double y;
string z;
bool operator <(const data&t) const{
return x<t.x;
}
}d[N];
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>d[i].x>>d[i].y>>d[i].z;
}
sort(d,d+n);
for(int i=0;i<n;i++){
printf("%d %.2lf %s\n",d[i].x,d[i].y,d[i].z.c_str());
}
return 0;
}