跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F2897. A polyline

  • ID: 2903
  • 传统题
  • 2000ms
  • 256MiB
  • 尝试: 0
  • AC · 已通过: 0
  • 教学难度:进阶
  • 上传者:
  • 模拟
  • 编程与模拟
  • 进阶
  • 难度
  • 共享题库
  • Codeforces
  • 英文题面
  • 题目来源
  • 题面语言

A polyline

题目描述

H. A polyline
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Input

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

Output

Output two integers separated by a single space.

Examples
Input
1 0
Output
0 0
Input
2 15
Output
3 0
Input
4 160
Output
12 12

题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 2568 题。保留原作者与原赛事署名。