Responsive image

问题 1565 --Amusing numbers

1565: Amusing numbers

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

题目描述

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.

样例输入

2
1
5

样例输出

5
65

来源

zj 

[提交][状态]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版