标签:amp put i++ 回车符 scan class sdn 换行符 ++
3
ABACABA
#include <cstdio> #include <iostream> #include <algorithm> #include <cmath> #include <cstring> #include <string> using namespace std; string miao[30]; string n[30] = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" ,"O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}; int main() { int m; miao[1] = "A"; for(int i = 2; i <= 27; i++) { miao[i] = miao[i-1]+n[i-1]+miao[i-1]; } while(~scanf("%d", &m)) { cout<<miao[m]<<endl; } return 0; }
标签:amp put i++ 回车符 scan class sdn 换行符 ++
原文地址:https://www.cnblogs.com/RootVount/p/10354943.html