An alternating current (a.c.) voltage source is connected in series with an ideal semiconductor diode and a resistor, as shown in the circuit diagram below.

Which graph best shows the variation of the potential difference V V\,V across the resistor with time ttt?
Graph A
Graph B
Graph C
Graph D