| 记录编号 | 345246 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1035.[Citric S1] 柠檬超市 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | Pascal | 运行时间 | 1.369 s | ||
| 提交时间 | 2016-11-10 21:36:58 | 内存使用 | 0.13 MiB | ||
const
inf='lemon1.in';
ouf='lemon1.out';
var
w,c,n,i,k,s:longint;
xjb:extended;
begin
assign(input,inf); reset(input);
assign(output,ouf); rewrite(output);
readln(n,s);
for i:=1 to n do begin
read(w,c);
if (w/c>xjb) and (s>c) then begin
xjb:=w/c;
k:=i;
end;
end;
writeln(k);
close(input); close(output);
end.