QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 1024 MB

#23948. 鉛筆 2

통계

問題文

JOI 君の所持金は $A$ 円である.JOI 君は $1$ 本 $5$ 円の鉛筆を最大で何本買えるかを求めよ.

制約

  • $1 \le A \le 100$.
  • $A$ は整数である.

入力

入力は以下の形式で与えられる.
$A$

出力

JOI 君が鉛筆を最大で何本買えるか,単位 (本) を除いて出力せよ.

答え以外は何も出力しないこと.(入力を促す文章なども出力しないこと.)

解答形式については,練習問題やその解答例 を参考にしても良い.


入力例 1

9

出力例 1

1
  • 鉛筆 $1$ 本は $5$ 円であるため,JOI 君は $1$ 本の鉛筆を買うことができる.
  • 鉛筆 $2$ 本は $10$ 円であるため,JOI 君は $2$ 本以上の鉛筆を買うことができない.

したがって $1$ を出力する.


入力例 2

10

出力例 2

2
  • 鉛筆 $2$ 本は $10$ 円であるため,JOI 君は $2$ 本の鉛筆を買うことができる.
  • 鉛筆 $3$ 本は $15$ 円であるため,JOI 君は $3$ 本以上の鉛筆を買うことができない.

したがって $2$ を出力する.


入力例 3

3

出力例 3

0
  • JOI 君は鉛筆を $1$ 本も買うことができない.

したがって $0$ を出力する.


入力例 4

100

出力例 4

20
  • 鉛筆 $20$ 本は $100$ 円であるため,JOI 君は $20$ 本の鉛筆を買うことができる.
  • 鉛筆 $21$ 本は $105$ 円であるため,JOI 君は $21$ 本以上の鉛筆を買うことができない.

したがって $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.