PATA1031 Hello World for U】的更多相关文章

参考代码: #include <cstdio> #include <cstring> int main() { char str[100], ans[40][40]; scanf("%s", str); int N = strlen(str); int n1 = (N + 2)/3;///是左右两边的字符数量 int n2 = N - n1 * 2 + 2;///是底部的字符数量 int post = 0; ///用于给str增加下标 for(int i = 1…