QOJ.ac

QOJ

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

#22586. Đọc trước giờ ngủ II

Statistics

Đề được phục dựng: không khôi phục được trang tiếng Anh gốc. Bản này tái dựng từ phân tích chính thức và dữ liệu vào/ra lưu trữ.

Farmer John tiếp tục đọc lý thuyết số cho Bessie trước ngủ. Với số nguyên dương $n$, $s(n)$ là tổng ước thực sự, mọi ước dương nhỏ hơn $n$. Lặp $s$ cho dãy aliquot. Ví dụ từ $12$ cho $12, 16, 15, 9, 4, 3, 1$.

Chu trình từ $n$ là dãy cuối cùng quay lại $n$. Với mỗi số nguyên đầu trong đoạn cho trước gồm hai đầu mút, tìm và in chu trình nếu quay lại trước khi gặp số nguyên nhỏ hơn. Mỗi chu trình in một lần bắt đầu tại số ban đầu. Có thể chứa số lớn hơn đầu trên đoạn nhập.

Dữ liệu vào

  • Dòng $1$: hai số nguyên $A$, $B$ $(1 \le A \le B \le 2,000,000)$.

Dữ liệu ra

Với mỗi số đầu trong đoạn có dãy aliquot quay lại nó trước giá trị nhỏ hơn, in dãy trên một dòng, các số nguyên cách nhau bằng dấu cách.

Ví dụ

Dữ liệu vào 1

200 1200

Dữ liệu ra 1

220 284
496
1184 1210

Nguồn bài: truyền thống; năm: 2006.

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.