问题1717--Amusing numbers

1717: Amusing numbers

时间限制: 1Sec 内存限制:128 MB
提交:145 解决:52
[ 状态] [ 讨论版] [ 提交] [命题人: ]
题目描述

Amusing numbers are numbers consisting only of digits 5 and 6.Given an integer k , display the kth amusing number.

输入

FIrst line consists of integer N representing number of test cases
Next N lines consist of N integers (1<=k<=10^15)

输出

N lines each displaying corresponding kth amusing number.

样例输入 Copy
2 1 5
样例输出 Copy
5 65
来源/分类