Word Play

In a word game each letter has a score based on its position in the alphabet. A scoring 1 through to Z scoring 26.  The object of the game is to split the letters of a word into two groups so that the total score in each group is the same. For example LIONHEAD can be split into LIHAD and ONE, both scoring 34. Write a program that determines if it is possible to win the game and, if so, says how to split the word. 

Resources

 Taken from the 2010 Informatics Olympiad.  

Click here to view all the competition tasks. 

© British Informatics Olympiad

About CDB 362 Articles
Self-Employed Software Developer, Spark, Property Management, Hobby Forestry, Ex-Teacher, Engineering - Wood, Metal, Electrics & Computers. Outdoors - Walk, Cycle, Kitesurf,

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.