type
TFloatList = specialize TFPGList<Double>;
var
List: TFloatList;
D: Double;
begin
List := TFloatList.Create;
while not Eof do
begin
Read(D);
List.Add(D);
end;
List.Free;
end.
let mut string = String::new();
io::stdin().read_to_string(&mut string)?;
let result = string
.lines()
.map(i32::from_str)
.collect::<Result<Vec<_>, _>>();
type
TFloatList = specialize TFPGList<Double>;
var
List: TFloatList;
D: Double;
begin
List := TFloatList.Create;
while not Eof do
begin
Read(D);
List.Add(D);
end;
List.Free;
end.
let mut string = String::new();
io::stdin().read_to_string(&mut string)?;
let result = string
.lines()
.map(i32::from_str)
.collect::<Result<Vec<_>, _>>();