QOJ.ac

QOJ

Time Limit: 0.5 s Memory Limit: 64 MB Total points: 100

#23685. Hrópmerkt

Statistics

Gefin er heiltala $n$ ($2 \le n \le 100000000$). Skrifið forrit sem finnur minnstu jákvæðu heiltöluna $m$ þannig að $m$ hrópmerkt sé deilanlegt með $n$. Hér, fyrir jákvæða heiltölu $m$, merkir $m$ hrópmerkt margfeldi allra heiltalna frá $1$ upp í $m$.

Inntak

Inntakið er gefið í skránni factorial.in. Þessi skrá samanstendur af einni línu sem inniheldur heiltöluna $n$.

Úttak

Forritið á að skrifa niðurstöðuna á staðalúttak. Skrifið út eina línu sem inniheldur eingöngu heiltöluna $m$.

Dæmi

Inntak 1

10

Úttak 1

5

Inntak 2

12

Úttak 2

4

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.