4033.A polyline

Time Limit: 1s Memory Limit: 256MB

4033_1.png

Input Format(From the terminal/stdin)

The input contains two integers a,b (1 \le a \le 10,0 \le b \le 22 \cdot a-1) separated by a single space.

Output Format(To the terminal/stdout)

Output two integers separated by a single space.

Sample Input 1

Copy
1 0
 · \n

Sample Output 1

Copy
0 0
 · \n

Sample Input 2

Copy
2 15
 ·  \n

Sample Output 2

Copy
3 0
 · \n

Sample Input 3

Copy
4 160
 ·   \n

Sample Output 3

Copy
12 12
  ·  \n

Submit

请先 登录

© 2025 FAQs