题解题解:CF2168A1 Encode and Decode (Easy Version)一道很水的通信题。由于观察到 1 ≤ a_i ≤ 26 ,因此直接利用 ASCII 码进行编码。 解码同理。减回去即可。 完整代码如下: