#include <stdio.h> #include <stdlib.h> struct st{ long long a; long long b; }; int com(const void *a,const void *b) { struct st * aa = (struct st *)a; struct st * bb = (struct st *)b; return aa->b - bb->b; } int main() { int i,j=0, n, tmp, num=0, t=1; scanf("%d",&n); ...