#K83432. Bot Mining Analysis
Bot Mining Analysis
Bot Mining Analysis
This problem involves analyzing bot activities in cloud mining operations. The input is a list of activity names, and you need to evaluate them based on their associated points from innovation and redundancy categories. Some activity names may also indicate complaints. Depending on the overall evaluation, you must output a final status message. In particular, if there are no innovation points and no complaints, a special message is output.
You are given the following scoring system:
- Innovation points:
- RevolutionAlgo: 1000 points
- AdvancedPredictive: 800 points
- RealtimeProcessing: 500 points
- PrecisionTask: 300 points
- Redundancy (negative) points:
- DeprecatedCode: -500 points
- RedundantProcess: -300 points
- HighEnergy: -100 points
- Complaints (case insensitive): "laggy!", "costly!", "unstable!", "insecure!"
The final evaluation is computed by summing the points for innovation and redundancy, and counting the number of complaints (detected by converting the string to lowercase to check membership). If the total points are 0 and there are no complaints, the output should be:
→'All bots are in optimal condition and no complaints to resolve!'
Otherwise, output the following message (replacing the placeholders with the computed values):
→'Innovative breakthrough with {total_points} points accumulated and {complaint_count} complaints mitigated!'
inputFormat
The input is read from standard input in the following format:
- An integer n indicating the number of activity strings.
- n lines follow, each containing a single activity string.
If n is 0, then there are no activity strings.
outputFormat
Print a single line to standard output: the evaluation message in one of the following formats:
- If no innovation points and no complaints:
- Otherwise:
→'All bots are in optimal condition and no complaints to resolve!'
→'Innovative breakthrough with {total_points} points accumulated and {complaint_count} complaints mitigated!'
2
RevolutionAlgo
AdvancedPredictive
->'Innovative breakthrough with 1800 points accumulated and 0 complaints mitigated!'