An algorithm question, I have no clue to solve it

There are N ingredients available for a chef to cook dishes.

  • For a dish to be tasty, the amount of ingredient i(1<=i<=N) must be between l[i] and r[i]. (r[i] >= l[i]).

  • A dish can fulfil the appetite of a person only if its weight is between L and R.

  • The weight of a dish is the sum of amounts of all ingredients used in its

Write a program to count the number of dishes that are tasty and fulfil the appetite of a person.

Note:

Two dishes are considered different if the amount of at least one ingredient is different in both of them.

An algorithm question, I have no clue to solve it

There are N ingredients available for a chef to cook dishes.

  • For a dish to be tasty, the amount of ingredient i(1<=i<=N) must be between l[i] and r[i]. (r[i] >= l[i]).

  • A dish can fulfil the appetite of a person only if its weight is between L and R.

  • The weight of a dish is the sum of amounts of all ingredients used in its

Write a program to count the number of dishes that are tasty and fulfil the appetite of a person.

Note:

Two dishes are considered different if the amount of at least one ingredient is different in both of them.

Asked MS to whitelist my mail server. Got back a reply that I don’t understand. Can anybody toss me a clue?

Text is below.

I have no idea what this means. Did they do something? Do I need to do something?


Please note that your ticket number is in the subject line of this mail.

nnn.nnn.nnn.nnn/32 (nnn.nnn.nnn.nnn is my mail server’s IP Address)

Note: Errors are unlikely, however, if an error is indicated, please resubmit the specific IP or IP range.

Thank you,