#include\u003ciostream\u003e\n#include\u003cstring\u003e\nusing namespace std;\n\nstring decrypt(string cipher) {\n string s = '';\n for(int i=0; i\u003ccipher.length(); i+=2) {\n s += cipher[i];\n }\n return s;\n}\n\nint main() {\n string cipher;\n cin >> cipher;\n string s = decrypt(cipher);\n cout << s << endl;\n return 0;\n}

蒜头君的诗歌加密解密算法 - C++ 实现

原文地址: https://www.cveoy.top/t/topic/pUb3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录