topcoder-srm-233-div2

#include 
#include 
#include 
#include 
using namespace std;

class JustifyText{
public:
	vector format( vector text ){
	
		/*find the max length*/
		int max_length = 0;
		for(int i=0; i max_length )
				max_length = text[i].length();


		vector result = text;

		/*padding every string*/
		for(int i=0; i

你可能感兴趣的:(ACM,and,POJ,算法)