poj 2894 Ancient Keyboard

来源:互联网 发布:车牌识别软件 编辑:程序博客网 时间:2024/04/30 02:02

题意:一个键盘含'A'-'Z'26个键,每个键上都有一个状态转化功能,默认为off,根据on状态的键的数量输出字符。 If there are i LEDs on, the ith letter of the English alphabet is written on the tape. For example, if three LEDs are on at a time step, a letter 'C' is written on the tape.(不重复)。

代码: