mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
376 B
C++
18 lines
376 B
C++
|
#include<stdio.h>
|
||
|
#include<algorithm>
|
||
|
using namespace std;
|
||
|
int main(){
|
||
|
int n;
|
||
|
while(~scanf("%d",&n)){
|
||
|
int as=0,a,b;
|
||
|
int v=111;
|
||
|
for(int i=0;i<n;++i){
|
||
|
scanf("%d%d",&a,&b);
|
||
|
as+=a;
|
||
|
v=min(v,b);
|
||
|
}
|
||
|
printf("%.2lf\n",1.0*as/v);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|