Q: Can a Lagrangian be such that all possible paths have the same action?
I was thinking if a Lagrangian of the motion of a particle could be represented as the total time derivative of some arbitrary function. In that case the action $S=\int^A_B L \, \mathrm{dt}$ will be a constant since $$S=\int^A_B \frac{df}{dt} \mathrm{dt}=f(A)-f(B)$$ and it will be independent of the path. It will depend only on the initial and final positions of the particle. Is such kind of a Lagrangian possible, either mathematically or physically?