#P7571. 「MCOI-05」幂积
「MCOI-05」幂积
Description
Define the function , where are primes. In particular, .
For , define the function as:
Given and , for all , compute for all .
Input Format
The first line contains a positive integer .
The second line contains a non-negative integer .
Output Format
Output lines.
The -th line contains four non-negative integers, and the -th non-negative integer is .
10 0
2 2 3 3
2 1 1 1
1 0 1 1
Hint
Explanation of Sample 1
Constraints
This problem uses bundled testdata.
| Subtask | Score | ||
|---|---|---|---|
| 1 | 5 pts | None | |
| 2 | 15 pts | ||
| 3 | 25 pts | None | |
| 4 | None | ||
| 5 | 30 pts | None |
For of the testdata, and .
Translated by ChatGPT 5
京公网安备 11011102002149号