yellow zinc plated screw to subfloor and stud
The lumber on the second floor is unlikely to be treated. And holding flooring down isn’t the toughest application, so that wouldn’t be an issue. The screws you linked to would be acceptable for this application.