HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Bil-373 Final > problem:


1. One

Bil-373 Final

Start: Jan.16.2023 at 01:30:00 PM
Finish: Jan.16.2023 at 04:05:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (8)

Contest problems

• 1. One
• 2. Two
• 3. Three
• 4. Торт
• 5. Беш

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 1000/3000/3000/3000 ms. Memory limit 65000/65000/65000/65000 Kb.

K жана S эки бүтүн сан берилет. X+Y+Z=S жана 0≤X,Y,Z≤K болгон канча түрдүү жооп бар.

Input:
K жана S бүтүн сан (2≤ K ≤ 2500 && 0≤3*S)

Output:
X, Y жана Zке туура келген баардык варианттардын саны


Мисалдар

Input-1:
2 2
Output-1:
6

Input-2:
5 15
Output-2:
1
Для отправки решений необходимо выполнить вход.

www.contester.ru