这题主要没什么难的。
先将字符串的第一个字符赋值给一个 char 字符,然后再输出数字。
注意:字符串的第一个字符不是 s[1] ,而是 s[0] 。
AC CODE:
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
string res;
int n;
cin>>res;
cin>>n;
char t = (res[0]);
cout<<t<<n<<endl;
return 0;
}