Nice Perfect Squares

시간 제한1초메모리 제한256 MB

요약
각 N에 대해 십진 표현에 2025가 연속으로 들어가는 N자리 완전제곱수를 출력한다.
난이도

보통10점 중 6점

유형
수학, 정수론, 문자열, 구현
정답자
아직 제출이 없습니다

문제

Busy Beaver calls an integer timely if its decimal representation has 20252025 as a contiguous substring.

Given an integer NN, output any NN-digit positive integer XX such that XX is timely and a perfect square. It can be shown that such an integer always exists.

입력

The first line contains a single integer TT (1≤T≤9971 \leq T \leq 997) --- the number of testcases.

The only line of each test case contains a single integer NN (4≤N≤10004 \leq N \leq 1000) --- the number of digits of XX.

출력

For each test case, output an NN-digit positive integer XX such that XX is timely and a perfect square.

힌트

In the first test case, 2025=4522025 = 45^2.

In the second test case, 42025=205242025 = 205^2.

In the third test case, 395720257969=6290632395720257969 = 629063^2.

예제1

  1. 예제 1

    입력
    3
    4
    5
    12
    
    예상 출력
    2025
    42025
    395720257969