Answer:
head straight across the river (perpendicular to the bank).
Step-by-step explanation:
To cross the river in the shortest time first your velocity should be relative to the earth has to have the largest possible component to the bank
suppose,
S be the swimmer
E be the earth
W be the water
be the velocity of X relative to Y
resultant velocity relative to E will be:

is parallel to the bank so,
has its largest component perpendicular to the bank when
is in that direction
so to cross the river in the shortest time you should straight across the current will then carry you downstream so your path relative to the earth is directed at angle downstream