import java.util.Arrays;
import java.util.Scanner;
class Woman{
//private static final Object Woman=null;
private static final Object Woman= null;
int x;
int y;
public Woman(int x,int y){
this.x=x;
this.y=y;
}
}
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner cin=new Scanner(System.in);
int count=cin.nextInt();
Woman[] woman=new Woman[count];
for(int i=0;i<count;i++){
woman[i]=new Woman(cin.nextInt(),cin.nextInt());
}
int min=woman[0].x;
for(int i=1;i<count;i++){
if(woman[i].x<min){
min=woman[i].x;
}
}
long sum=0;
int recount=0;
for(int i=0;i<count;i++){
if(woman[i].x==min){
recount++;
sum+=woman[i].y;
}
}
System.out.println(recount+" "+sum);
}
}
谁是最强的女汉子
最新推荐文章于 2021-12-01 20:31:44 发布