QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 1024 MB

#23948. Matite 2

Statistiques

Descrizione del problema

JOI possiede $A$ yen. Trova il numero massimo di matite che può comprare sapendo che $1$ matita costa $5$ yen.

Vincoli

  • $1 \le A \le 100$.
  • $A$ è un numero intero.

Input

L'input è fornito nel seguente formato:
$A$

Output

Stampa il numero massimo di matite che JOI può comprare, omettendo l'unità di misura.

Non stampare nient'altro oltre alla risposta. (Non stampare messaggi di richiesta di input, ecc.)

Per il formato della risposta, puoi anche fare riferimento ai problemi di prova e alle relative soluzioni di esempio.


Input di esempio 1

9

Output di esempio 1

1
  • Poiché $1$ matita costa $5$ yen, JOI può comprare $1$ matita.
  • Poiché $2$ matite costano $10$ yen, JOI non può comprare $2$ o più matite.

Pertanto, stampa $1$.


Input di esempio 2

10

Output di esempio 2

2
  • Poiché $2$ matite costano $10$ yen, JOI può comprare $2$ matite.
  • Poiché $3$ matite costano $15$ yen, JOI non può comprare $3$ o più matite.

Pertanto, stampa $2$.


Input di esempio 3

3

Output di esempio 3

0
  • JOI non può comprare nemmeno $1$ matita.

Pertanto, stampa $0$.


Input di esempio 4

100

Output di esempio 4

20
  • Poiché $20$ matite costano $100$ yen, JOI può comprare $20$ matite.
  • Poiché $21$ matite costano $105$ yen, JOI non può comprare $21$ o più matite.

Pertanto, stampa $20$.

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.