📄 1922.txt
字号:
import java.util.*;
class Main {
public static void main( String [] arg ) {
Scanner cin = new Scanner(System.in);
while( true ) {
int n = cin.nextInt( ), i;
if( n <= 0 )
break;
double ans = 1e100, t, v;
for( i=0; i<n; i++ ){
v = cin.nextDouble( );
t = cin.nextDouble( );
if( t >= 0 )
if( t + 4.5/v*3600 < ans )
ans = t + 4.5/v*3600;
}
System.out.printf( "%.0f\n", new Object[]{ Double.valueOf(ans+0.49999) } );
}
return ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -