SP19288 WPC5C - Sword Game

Description

It is 2048, and a Martian robot called SSH3 wants to win galactical wars, as he does every year. He has been chosen to participate in the prestigious Sword Game, possibly the last one to ever happen. This is the format of the Sword Game. Every sword has a name S which is a string of n characters from a-z. The strength of the sword is decided in the following way. Define a function f (l1, l2) for every 1

Input Format

N/A

Output Format

N/A