Histogram
Time limit2sMemory limit512 MB
Read n bar sizes and print one line of exactly k equals signs for each bar size k.
- Level
Easy1 of 10
- Topics
- Implementation, String
- Solved
- No attempts yet
Problem
A histogram is a picture of data. It is made of bars, and the length of one bar is the size of the data it stands for.
You are given a list of bar lengths. Draw the histogram for that list.
Input
The first line contains the number of test cases ().
Each of the next lines contains the size () of one histogram bar.
Output
For each test case, print one line holding exactly copies of =, where is that bar's size. Do not put a space between two = characters.