求助!
查看原帖
求助!
977778
__Harry_Haiyun__楼主2023/8/30 13:28
#include <bits/stdc++.h>
//#define int long long
#define iostream() ios::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);
using namespace std;
const int maxn = 1e6+7;
const int MAXN = maxn / 2;
signed main()
{
    iostream();
    char s[8];
    cin >> s;
    string a[100];
	a[int('B')] = "Bachelor";
	a[int('D')] = "Doctor";
	a[int('M')] = "Master";
    printf("%s %c%c\n,a[s[2]],s[0],s[1]);
 	return 0;
}
2023/8/30 13:28
加载中...