#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >> m; // 从第 m 个字符开始复制剩余字符串 for (char *p = str+m-1; (*p) != '\0'; p++) cout << *p; return 0; }