string的世界 0ms
2025-07-19 14:45:11
发布于:浙江
1阅读
0回复
0点赞
打表,一个if都不用。时间0ms。
//#include <windows.h>
#include<bits/stdc++.h>
#include<ctime>
#include<cstdio>
//#include <thread>
using namespace std;
typedef long long ll;
typedef double d;
typedef unsigned long long ull;
typedef char ch;
typedef string str;
typedef const ll coll;
const ll N=1e7+5;
str s[3][10];
ll num1,num2;
signed main()
{
s[1][1]="ZhuFan";
s[1][2]="HeZhou";
s[2][1]="XiaoPingGuo";
s[2][2]="DongFengPo";
s[2][3]="GiliGliAi";
cin>>num1>>num2;
cout<<s[num1][num2];
return 0;
}
这里空空如也
有帮助,赞一个