Responsive image

问题 1773 --正直的人

1773: 正直的人

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

题目描述

A man should have a healthy atmosphere, the students in Pingdingshan should be so. For example, we should do today's exam on the integrity of the.
The first problem in each exam is always very simple, today is no exception, the problem is to specify the output size of the string "PDSU", in particular, in order to reflect the "righteousness" two words, we require the output string is square (equal number of rows and columns).

输入描述

The first line of the input contains a positive integer N (N<=20), indicating that there are a total of N sets of data, followed by the N line data, each line contains a positive integer M (M<=50), indicating that there is a line of M "connected".

输出描述

Output the specified size of the square string, the output format see sample data.

样例输入

2
1
2

样例输出

PDSU
PDSU
PDSU
PDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU
PDSUPDSU

来源

 

[提交][状态]
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算法攻关部
    关于网站改版