#P11568. 「chaynOI R1 T1」一维数组

「chaynOI R1 T1」一维数组

Background

Problem Description

You are given two positive integers n,mn, m. You need to construct two positive integers x,yx, y (with no leading 00), such that xx has nn digits, yy has mm digits, and x×yx \times y is a palindrome number.

Please make sure your constructed output is valid, otherwise you will bear the consequences.

Input Format

One line with two positive integers n,mn, m.

Output Format

One line with two integers, representing x,yx, y.

2 6
83 138017‬

5 5
24513 40723

Hint

For 100%100\% of the testdata, n,m103n, m \le 10^3.

This problem uses bundled tests.

  • Subtask 1 (25pts): n,m6n, m \le 6.
  • Subtask 2 (10pts): m=1m = 1.
  • Subtask 3 (65pts): No special constraints.

Translated by ChatGPT 5