题解:P13101 致谢 | FJCPC2025全体参赛选手&赛事staff

· · 题解

Solution

思路

简单题,因为 n 很小,我们直接用一个字符数组储存各届承办院校英文缩写,然后根据 n 的值找到字符数组中储存答案的位置即可。

Code

#include <bits/stdc++.h>
#define Write ios::sync_with_stdio(0);
#define by cin.tie(0);
#define AquaDaMean1e cout.tie(0);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int N = 1e5 + 10;
const int MOD = 998244353;
int n; 
string s[12] = {" ", "FZU", "FNU", "FZU", "FZU", "FAFU", "HQU", "MJU", "XMUT", "QNU", "JMU", "FZU"}; 
int main() {
    Write by AquaDaMean1e
    cin >> n;
    cout << s[n];
    return 0;
}