QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 256 MB Total points: 100

#22541. Il pascolo segreto di Bessie

Statistics

Farmer John ha tagliato dal pascolo quasi infiniti quadrati di zolla di tutte le lunghezze intere del lato. A volte FJ non aziona bene la lama e crea persino quadrati di lato 0. Li ha impilati ordinatamente e Bessie li ha notati un pomeriggio.

Bessie desidera sempre erba deliziosa nel pascolo segreto. Porta esattamente quattro zolle e le taglia in parti $1\times1$ per ricoprire i suoi $N$ quadrati unitari ($1 \le N \le 10,000$).

Quanti modi ci sono di scegliere quattro zolle? Per grandezza 4 ce ne sono cinque: $(1,1,1,1)$, $(2,0,0,0)$, $(0,2,0,0)$, $(0,0,2,0)$, $(0,0,0,2)$. L'ordine conta: $(4,3,2,1)$ e $(1,2,3,4)$ sono diversi.

Input

  • Riga 1: un intero $N$.

Output

  • Riga 1: un intero, il numero di modi diversi per Bessie di scegliere quattro zolle per il pascolo.

Esempi

Input 1

4

Output 1

5

Autore del problema: Jeffrey Wang, 2007

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.