← Back to List

13752번: 히스토그램 ↗

Solutions

C++14
204 B | 204 chars
#include <iostream>
using namespace std;
int N;
int ar[110];
int main()
{
	cin>>N;
	for(int x=0; x<N; x++) cin>>ar[x];
	for(int x=0; x<N; x++)
	{
		for(int y=0; y<ar[x]; y++) cout<<"=";
		cout<<endl;
	}
}