You have a large electronic screen which can display up to 998244353
As you can see, different digits may require different number of segments to be turned on. For example, if you want to display 1
You want to display a really large integer on the screen. Unfortunately, the screen is bugged: no more than n
Your program should be able to process t
The first line contains one integer t
Then the test cases follow, each of them is represented by a separate line containing one integer n
It is guaranteed that the sum of n
For each test case, print the greatest integer that can be displayed by turning on no more than n
Educational Codeforces Round 81 (Rated for Div. 2) A Display The Number
原文:https://www.cnblogs.com/hulian425/p/12242644.html