Update Problem B in Round C