#C14831. Influencer Data Comparison

    ID: 44524 Type: Default 1000ms 256MiB

Influencer Data Comparison

Influencer Data Comparison

You are given data for multiple social media influencers. Each influencer is described by a name, a platform, the number of followers, an engagement rate, and a category. Your task is to read the influencer data from standard input, process them, and output a JSON dictionary where each key is the influencer's name and its value is an object containing their platform, followers, engagement_rate, and category.

The engagement rate is a float value. In some contexts, it may be calculated using the formula \(\text{engagement_rate}=\frac{\text{likes}+\text{comments}}{\text{followers}}\times100\), though in this problem it is provided directly.

Ensure that your solution reads input from stdin and prints the result to stdout in valid JSON format. The output JSON should not include any additional spaces or line breaks.

inputFormat

The first line of input contains an integer \(n\) denoting the number of influencers. The following \(n\) lines each contain five values separated by spaces: name (string), platform (string), followers (integer), engagement_rate (float) and category (string).

outputFormat

Output a single line containing a JSON dictionary. Each key should be an influencer's name, and each value must be a JSON object with keys: platform, followers, engagement_rate, and category corresponding to that influencer's attributes.

## sample
2
Alice Instagram 10000 5.4 Fashion
Bob YouTube 20000 4.9 Tech
{"Alice":{"platform":"Instagram","followers":10000,"engagement_rate":5.4,"category":"Fashion"},"Bob":{"platform":"YouTube","followers":20000,"engagement_rate":4.9,"category":"Tech"}}